summaryrefslogtreecommitdiff
path: root/math/xylib/patches/patch-xylib_cache.h
diff options
context:
space:
mode:
authorjoerg <joerg>2013-04-30 22:26:29 +0000
committerjoerg <joerg>2013-04-30 22:26:29 +0000
commit7069898bfbb065b400502586ce7ea7b25f008a82 (patch)
tree7a3a2978eabc8bb10edf6c93293125fca275247d /math/xylib/patches/patch-xylib_cache.h
parentc0079b70f0cbb2778f437ce15a6a920c29c1247d (diff)
downloadpkgsrc-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.h16
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