summaryrefslogtreecommitdiff
path: root/math/meschach/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-30 19:13:50 +0000
committerrillig <rillig@pkgsrc.org>2007-11-30 19:13:50 +0000
commitf8e44a9d2ee023baa33ec4310e486a308ab63f09 (patch)
tree7434bae8606bf510b44e82a65f752f7e6c1c6595 /math/meschach/patches
parent3db56436228802847c22441b7bf6701ca4df91fb (diff)
downloadpkgsrc-f8e44a9d2ee023baa33ec4310e486a308ab63f09.tar.gz
Made the program build with c99 compilers by undefining the "complex"
macro.
Diffstat (limited to 'math/meschach/patches')
-rw-r--r--math/meschach/patches/patch-ab22
1 files changed, 16 insertions, 6 deletions
diff --git a/math/meschach/patches/patch-ab b/math/meschach/patches/patch-ab
index 4675347697d..9b499796d3a 100644
--- a/math/meschach/patches/patch-ab
+++ b/math/meschach/patches/patch-ab
@@ -1,8 +1,16 @@
-$NetBSD: patch-ab,v 1.2 2001/02/25 21:40:23 jtb Exp $
+$NetBSD: patch-ab,v 1.3 2007/11/30 19:13:51 rillig Exp $
---- machine.h.in.orig Sun Feb 25 21:22:48 2001
-+++ machine.h.in
-@@ -211,11 +211,13 @@
+--- machine.h.in.orig 1995-03-27 15:37:41.000000000 +0000
++++ machine.h.in 2007-11-30 19:10:05.000000000 +0000
+@@ -119,6 +119,7 @@
+ /* if the system has complex.h */
+ #ifdef HAVE_COMPLEX_H
+ #include <complex.h>
++#undef complex /* zmachine.h defines a structure of that name. */
+ #endif
+
+ /* If prototypes are available & ANSI_C not yet defined, then define it,
+@@ -211,6 +212,7 @@
#endif
/* for non-ANSI systems */
@@ -10,9 +18,11 @@ $NetBSD: patch-ab,v 1.2 2001/02/25 21:40:23 jtb Exp $
#ifndef HUGE_VAL
#define HUGE_VAL HUGE
#else
- #ifndef HUGE
+@@ -218,6 +220,7 @@
#define HUGE HUGE_VAL
-+#endif
#endif
#endif
++#endif
+
+ #ifdef ANSI_C