summaryrefslogtreecommitdiff
path: root/math/guppi/patches
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@pkgsrc.org>2003-11-19 00:00:01 +0000
committersommerfeld <sommerfeld@pkgsrc.org>2003-11-19 00:00:01 +0000
commite6580404a6ec3d5067001a0b9bce5ba81aab30f3 (patch)
tree93305abd9618b94a47030c50eb44cb5a769f0a5b /math/guppi/patches
parentef982035ccf6d6e045b42649334db57883256276 (diff)
downloadpkgsrc-e6580404a6ec3d5067001a0b9bce5ba81aab30f3.tar.gz
Fix build of const.o on -current by adding #ifdef INFINITY
Diffstat (limited to 'math/guppi/patches')
-rw-r--r--math/guppi/patches/patch-aa18
1 files changed, 18 insertions, 0 deletions
diff --git a/math/guppi/patches/patch-aa b/math/guppi/patches/patch-aa
new file mode 100644
index 00000000000..6329d2bd37a
--- /dev/null
+++ b/math/guppi/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.6 2003/11/19 00:00:01 sommerfeld Exp $
+
+--- src/libguppispecfns/const.c.orig 2001-05-05 14:16:23.000000000 -0400
++++ src/libguppispecfns/const.c
+@@ -93,11 +93,13 @@ double LOGE2 = 6.93147180559945309417E-1
+ double LOGSQ2 = 3.46573590279972654709E-1; /* log(2)/2 */
+ double THPIO4 = 2.35619449019234492885; /* 3*pi/4 */
+ double TWOOPI = 6.36619772367581343075535E-1; /* 2/pi */
++#ifndef INFINITY
+ #ifdef INFINITIES
+ double INFINITY = 1.0 / 0.0; /* 99e999; */
+ #else
+ double INFINITY = 1.79769313486231570815E308; /* 2**1024*(1-MACHEP) */
+ #endif
++#endif
+
+ #ifdef MINUSZERO
+ double NEGZERO = -0.0;