echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff --- a/ktdbext.h 2013-11-08 09:34:53.000000000 -0500 +++ b/ktdbext.h 2013-11-08 09:35:00.000000000 -0500 @@ -271,7 +271,7 @@ if (!logf("prepare", "started to open temporary databases under %s", tmppath.c_str())) err = true; stime = kc::time(); - uint32_t pid = getpid() & kc::UINT16MAX; + uint32_t pid = kc::getpid() & kc::UINT16MAX; uint32_t tid = kc::Thread::hash() & kc::UINT16MAX; uint32_t ts = kc::time() * 1000; for (size_t i = 0; i < dbnum_; i++) { EOF