summaryrefslogtreecommitdiff
path: root/debian/patches/fix-kfreebsd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-kfreebsd.patch')
-rw-r--r--debian/patches/fix-kfreebsd.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/fix-kfreebsd.patch b/debian/patches/fix-kfreebsd.patch
new file mode 100644
index 0000000..74ae200
--- /dev/null
+++ b/debian/patches/fix-kfreebsd.patch
@@ -0,0 +1,15 @@
+Description: fix FTBFS on kFreeBSD (Closes: #719173)
+Author: Petr Salinger <Petr.Salinger@seznam.cz>
+Bug-Debian: http://bugs.debian.org/719173
+
+--- opencolorio-1.0.8~dfsg0.orig/export/OpenColorIO/OpenColorABI.h.in
++++ opencolorio-1.0.8~dfsg0/export/OpenColorIO/OpenColorABI.h.in
+@@ -65,7 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+
+ // If supported, define OCIOEXPORT, OCIOHIDDEN
+ // (used to choose which symbols to export from OpenColorIO)
+-#if defined __linux__ || __APPLE__
++#if defined __linux__ || __APPLE__ || __GLIBC__
+ #if __GNUC__ >= 4
+ #define OCIOEXPORT __attribute__ ((visibility("default")))
+ #define OCIOHIDDEN __attribute__ ((visibility("hidden")))