diff options
| author | Dan Crosta | 2013-11-08 09:38:38 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-06 09:10:25 +0000 |
| commit | 3cf1542d8ddad80f14747d056fd2bdf7ff7f0729 (patch) | |
| tree | 2fc94f9e49ba85c3f8456c971732393a800b216a /Library | |
| parent | 716d4a9b75f7a3e28c7f5d15c5ab5f3beffe1e3b (diff) | |
| download | homebrew-3cf1542d8ddad80f14747d056fd2bdf7ff7f0729.tar.bz2 | |
kyoto-tycoon: build with clang on mavericks
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/kyoto-tycoon.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/kyoto-tycoon.rb b/Library/Formula/kyoto-tycoon.rb index cc61d7281..679a9d15e 100644 --- a/Library/Formula/kyoto-tycoon.rb +++ b/Library/Formula/kyoto-tycoon.rb @@ -20,4 +20,24 @@ class KyotoTycoon < Formula system "make" system "make install" end + + def patches + if MacOS.version >= :mavericks + DATA + end + end end + + +__END__ +--- 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++) { |
