summaryrefslogtreecommitdiff
path: root/graphics/xfractint/files/patch-headers__port.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xfractint/files/patch-headers__port.h')
-rw-r--r--graphics/xfractint/files/patch-headers__port.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/xfractint/files/patch-headers__port.h b/graphics/xfractint/files/patch-headers__port.h
new file mode 100644
index 000000000000..a1d227fde511
--- /dev/null
+++ b/graphics/xfractint/files/patch-headers__port.h
@@ -0,0 +1,20 @@
+--- ./headers/port.h.orig 2008-02-17 17:26:16.000000000 -0500
++++ ./headers/port.h 2010-01-27 13:52:46.000000000 -0500
+@@ -44,7 +44,7 @@
+ /* If endian.h is not present, it can be handled in the code below, */
+ /* but if you have this file, it can make it more fool proof. */
+ #if (defined(XFRACT) && !defined(__sun))
+-#if defined(sgi)
++#if defined(sgi) || defined(__FreeBSD__)
+ #include <sys/endian.h>
+ #else
+ #include <endian.h>
+@@ -319,7 +319,7 @@
+ /* HP-UX support long doubles and allows them to be read in with */
+ /* scanf(), but does not support the functions sinl, cosl, fabsl, etc. */
+ /* CAE added this 26Jan95 so it would compile (altered by Wes to new macro) */
+-#ifdef _HPUX_SOURCE
++#if defined _HPUX_SOURCE || defined (__FreeBSD__)
+ #define DO_NOT_USE_LONG_DOUBLE
+ #endif
+