diff options
author | sommerfeld <sommerfeld> | 2003-11-19 00:00:01 +0000 |
---|---|---|
committer | sommerfeld <sommerfeld> | 2003-11-19 00:00:01 +0000 |
commit | 601d9b07775162d4d490c8989617ccf53322c7b3 (patch) | |
tree | 93305abd9618b94a47030c50eb44cb5a769f0a5b /math | |
parent | 4dec166a9e95b570a6d3378917c6edfd2c8a0b82 (diff) | |
download | pkgsrc-601d9b07775162d4d490c8989617ccf53322c7b3.tar.gz |
Fix build of const.o on -current by adding #ifdef INFINITY
Diffstat (limited to 'math')
-rw-r--r-- | math/guppi/distinfo | 3 | ||||
-rw-r--r-- | math/guppi/patches/patch-aa | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/math/guppi/distinfo b/math/guppi/distinfo index ac3d243ec41..914ab12ffd9 100644 --- a/math/guppi/distinfo +++ b/math/guppi/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.6 2002/05/15 20:44:15 mjl Exp $ +$NetBSD: distinfo,v 1.7 2003/11/19 00:00:01 sommerfeld Exp $ SHA1 (Guppi-0.40.3.tar.bz2) = 7435bddddca9e3347efb006ad33198fbbe593ea7 Size (Guppi-0.40.3.tar.bz2) = 1016831 bytes +SHA1 (patch-aa) = 74b82a9fbf545d1c606f9b91c54259229f718c7d 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; |