diff options
| author | Dominik | 2013-10-23 12:48:50 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-23 12:48:50 +0100 |
| commit | 4d6345c2e3ba9a629a3b104014f1cc2830716f3c (patch) | |
| tree | bcc4c0c4cb6189918e67f44c9fe4b31d15ff8542 /Library | |
| parent | d9f74c48e3cf4dea9940e67f1341cb7c01dc4c62 (diff) | |
| download | homebrew-4d6345c2e3ba9a629a3b104014f1cc2830716f3c.tar.bz2 | |
libmemcached: fix "tr1/cintypes" error on 10.9.
Closes #22259.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libmemcached.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/libmemcached.rb b/Library/Formula/libmemcached.rb index fd2baa9f6..0386caf49 100644 --- a/Library/Formula/libmemcached.rb +++ b/Library/Formula/libmemcached.rb @@ -13,4 +13,30 @@ class Libmemcached < Formula system "./configure", "--prefix=#{prefix}" system "make install" end + + def patches + if MacOS.version >= :mavericks and ENV.compiler == :clang + # build fix for tr1 -> std + DATA + end + end + end + +__END__ +diff --git a/libmemcached-1.0/memcached.h b/libmemcached-1.0/memcached.h +index 3c11f61..dcee395 100644 +--- a/libmemcached-1.0/memcached.h ++++ b/libmemcached-1.0/memcached.h +@@ -43,7 +43,11 @@ + #endif + + #ifdef __cplusplus ++#ifdef _LIBCPP_VERSION ++# include <cinttypes> ++#else + # include <tr1/cinttypes> ++#endif + # include <cstddef> + # include <cstdlib> + #else |
