summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorrillig <rillig>2006-06-12 14:54:55 +0000
committerrillig <rillig>2006-06-12 14:54:55 +0000
commit91123b7a18f887470dee723290ae2e21b0e303c4 (patch)
treed2eab0db093b4e4f269bfa7090338b93da5e0907 /math
parent752ecd0dc6df436d7dfe83a0785fe88c6211c927 (diff)
downloadpkgsrc-91123b7a18f887470dee723290ae2e21b0e303c4.tar.gz
Added a patch for Solaris 5.8.
Diffstat (limited to 'math')
-rw-r--r--math/xfractint/patches/patch-ab22
1 files changed, 22 insertions, 0 deletions
diff --git a/math/xfractint/patches/patch-ab b/math/xfractint/patches/patch-ab
new file mode 100644
index 00000000000..60c4cd0972c
--- /dev/null
+++ b/math/xfractint/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2006/06/12 14:54:55 rillig Exp $
+
+Solaris 5.8 does not have the "long double" functions in libm.
+
+--- soi.c.orig 1999-09-06 17:38:10.000000000 +0200
++++ soi.c 2006-06-12 16:38:49.362108867 +0200
+@@ -17,9 +17,15 @@
+ #include "port.h"
+ #include "prototyp.h"
+
++#if defined(__sun) && defined(__SunOS_5_8)
++#define DBLS double
++#define FREXP(x,y) frexp((x), (y))
++#define FABS(x) fabs((x))
++#else
+ #define DBLS LDBL
+ #define FABS(x) fabsl(x)
+ #define FREXP(x,y) frexpl(x,y)
++#endif
+
+ #define TRUE 1
+ #define FALSE 0