libmemcached: fix "tr1/cintypes" error on 10.9.

Closes Homebrew/homebrew#22259.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Dominik 2013-10-23 12:48:50 +01:00 committed by Mike McQuaid
parent 24b6c79576
commit cd31598fdc

View file

@ -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