summaryrefslogtreecommitdiff
path: root/graphics/ilmbase/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2013-12-26 15:59:20 +0000
committertron <tron@pkgsrc.org>2013-12-26 15:59:20 +0000
commit79d862f2a7733873c5220e7961998d903f5389e8 (patch)
tree86f65066c19fdbd4ffd13f5c242005e1282af8ac /graphics/ilmbase/patches
parent06cafd2da13c78f8b562923e0930fff45f919a66 (diff)
downloadpkgsrc-79d862f2a7733873c5220e7961998d903f5389e8.tar.gz
Fix build with SunStudio compiler under Solaris.
Diffstat (limited to 'graphics/ilmbase/patches')
-rw-r--r--graphics/ilmbase/patches/patch-Iex_IexBaseExc.cpp17
-rw-r--r--graphics/ilmbase/patches/patch-Imath_ImathMatrixAlgo.cpp14
2 files changed, 31 insertions, 0 deletions
diff --git a/graphics/ilmbase/patches/patch-Iex_IexBaseExc.cpp b/graphics/ilmbase/patches/patch-Iex_IexBaseExc.cpp
new file mode 100644
index 00000000000..4a4f3706c35
--- /dev/null
+++ b/graphics/ilmbase/patches/patch-Iex_IexBaseExc.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-Iex_IexBaseExc.cpp,v 1.1 2013/12/26 15:59:27 tron Exp $
+
+Fix build with C compilers other GCC.
+
+--- Iex/IexBaseExc.cpp.orig 2013-10-15 23:55:09.000000000 +0100
++++ Iex/IexBaseExc.cpp 2013-12-26 15:17:54.000000000 +0000
+@@ -149,8 +149,10 @@
+ void
+ iex_debugTrap()
+ {
++#ifdef __GNUC__
+ // how to in Linux?
+ if (0 != ::getenv("IEXDEBUGTHROW"))
+ __builtin_trap();
++#endif
+ }
+ #endif
diff --git a/graphics/ilmbase/patches/patch-Imath_ImathMatrixAlgo.cpp b/graphics/ilmbase/patches/patch-Imath_ImathMatrixAlgo.cpp
new file mode 100644
index 00000000000..b6088a8f247
--- /dev/null
+++ b/graphics/ilmbase/patches/patch-Imath_ImathMatrixAlgo.cpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-Imath_ImathMatrixAlgo.cpp,v 1.1 2013/12/26 15:59:27 tron Exp $
+
+Fix build with SunStudio compiler under Solaris.
+
+--- Imath/ImathMatrixAlgo.cpp.orig 2013-06-18 20:51:38.000000000 +0100
++++ Imath/ImathMatrixAlgo.cpp 2013-12-26 15:22:33.000000000 +0000
+@@ -44,6 +44,7 @@
+
+ #include "ImathMatrixAlgo.h"
+ #include <cmath>
++#include <algorithm>
+
+ #if defined(OPENEXR_DLL)
+ #define EXPORT_CONST __declspec(dllexport)