diff options
author | danfe <danfe@FreeBSD.org> | 2013-10-10 21:46:39 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-10-10 21:46:39 +0800 |
commit | 9f5656a0ea544d06211f3cb5cf1071fe60646fff (patch) | |
tree | ee6d91cf7c0f27c45a8d53d358f70e7d11f25b7f /graphics | |
parent | 91e53ae81a16cf9f4c542b3c61633affb86fe2b0 (diff) | |
download | freebsd-ports-gnome-9f5656a0ea544d06211f3cb5cf1071fe60646fff.tar.gz freebsd-ports-gnome-9f5656a0ea544d06211f3cb5cf1071fe60646fff.tar.zst freebsd-ports-gnome-9f5656a0ea544d06211f3cb5cf1071fe60646fff.zip |
Fix one build problem with Clang on FreeBSD 10. There is another problem
due to conflict between libstdc++ and libc++, it will be fixed separately.
PR: ports/182425
Submitted by: dumbbell
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/darktable/files/patch-src-common-imageio_exr.hh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/darktable/files/patch-src-common-imageio_exr.hh b/graphics/darktable/files/patch-src-common-imageio_exr.hh new file mode 100644 index 000000000000..8e5a320a754b --- /dev/null +++ b/graphics/darktable/files/patch-src-common-imageio_exr.hh @@ -0,0 +1,24 @@ +--- src/common/imageio_exr.hh.orig ++++ src/common/imageio_exr.hh +@@ -21,7 +21,11 @@ + #include "common/image.h" + #include "common/mipmap_cache.h" + ++#if __cplusplus >= 201103L || defined(__clang__) ++#include <memory> ++#else + #include <tr1/memory> ++#endif + + #include <OpenEXR/ImfFrameBuffer.h> + #include <OpenEXR/ImfTestFile.h> +@@ -56,7 +60,11 @@ public: + } + + uint32_t size; ++#if __cplusplus >= 201103L || defined(__clang__) ++ std::shared_ptr<uint8_t> data; ++#else + std::tr1::shared_ptr<uint8_t> data; ++#endif + }; |