diff options
author | joerg <joerg@pkgsrc.org> | 2013-04-30 22:26:29 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-04-30 22:26:29 +0000 |
commit | 2ab18de22d3566b53bcbb4e858ee59733508875d (patch) | |
tree | 7a3a2978eabc8bb10edf6c93293125fca275247d /math | |
parent | 7644c47e254481d60dfbb699a910d7050a2ec628 (diff) | |
download | pkgsrc-2ab18de22d3566b53bcbb4e858ee59733508875d.tar.gz |
Use <memory> for libc++.
Diffstat (limited to 'math')
-rw-r--r-- | math/xylib/distinfo | 3 | ||||
-rw-r--r-- | math/xylib/patches/patch-xylib_cache.h | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/math/xylib/distinfo b/math/xylib/distinfo index 49b34b27060..b572fc77343 100644 --- a/math/xylib/distinfo +++ b/math/xylib/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2012/09/14 00:22:11 asau Exp $ +$NetBSD: distinfo,v 1.5 2013/04/30 22:26:29 joerg Exp $ SHA1 (xylib-1.0.tar.bz2) = 3664b6753e11673e637ced473ce00d24ff0ce338 RMD160 (xylib-1.0.tar.bz2) = 3a125a7d08a60fa65e22a0b09122069a160ebfac Size (xylib-1.0.tar.bz2) = 287286 bytes +SHA1 (patch-xylib_cache.h) = a34d702b8b5a4525255717f0971e1fa1f651cfee 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 |