diff options
author | joerg <joerg> | 2013-04-30 22:26:29 +0000 |
---|---|---|
committer | joerg <joerg> | 2013-04-30 22:26:29 +0000 |
commit | 7069898bfbb065b400502586ce7ea7b25f008a82 (patch) | |
tree | 7a3a2978eabc8bb10edf6c93293125fca275247d /math/xylib/patches/patch-xylib_cache.h | |
parent | c0079b70f0cbb2778f437ce15a6a920c29c1247d (diff) | |
download | pkgsrc-7069898bfbb065b400502586ce7ea7b25f008a82.tar.gz |
Use <memory> for libc++.
Diffstat (limited to 'math/xylib/patches/patch-xylib_cache.h')
-rw-r--r-- | math/xylib/patches/patch-xylib_cache.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/math/xylib/patches/patch-xylib_cache.h b/math/xylib/patches/patch-xylib_cache.h new file mode 100644 index 00000000000..774575d2774 --- /dev/null +++ b/math/xylib/patches/patch-xylib_cache.h @@ -0,0 +1,16 @@ +$NetBSD: patch-xylib_cache.h,v 1.1 2013/04/30 22:26:29 joerg Exp $ + +--- xylib/cache.h.orig 2013-04-29 18:52:26.000000000 +0000 ++++ xylib/cache.h +@@ -28,7 +28,10 @@ + #define XYLIB_USE_TR1_MEMORY 1 + #endif + +-#if XYLIB_USE_TR1_MEMORY ++#if defined(_LIBCPP_VERSION) ++# include <memory> ++using std::shared_ptr; ++#elif XYLIB_USE_TR1_MEMORY + # include <tr1/memory> + using std::tr1::shared_ptr; + #else |