diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-10-10 13:46:39 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-10-10 13:46:39 +0000 |
commit | 1881ffb25f6ad1f5c7802e6f9b6dcc99bd5fa1ab (patch) | |
tree | ee6d91cf7c0f27c45a8d53d358f70e7d11f25b7f /graphics | |
parent | Update to 3.0.4 (diff) |
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
Notes
Notes:
svn path=/head/; revision=330000
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 + }; |