summaryrefslogtreecommitdiff
path: root/cad/ng-spice/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-28 16:06:37 +0000
committerjoerg <joerg>2005-12-28 16:06:37 +0000
commit1e9ee54983bcb7fdfc19aba0ffbb9fad3098ee9f (patch)
treecce369516d20ee0ca89d6ee83e1afe14f192dc6c /cad/ng-spice/patches
parent4ecc5b56f4220c2b7c44b2a92ed3d50e3657cd7f (diff)
downloadpkgsrc-1e9ee54983bcb7fdfc19aba0ffbb9fad3098ee9f.tar.gz
Don't use the local version if isnan is a macro. I don't want to replace
the stupid^Wbroken configure check at the moment, but this fixes the problem.
Diffstat (limited to 'cad/ng-spice/patches')
-rw-r--r--cad/ng-spice/patches/patch-ai13
-rw-r--r--cad/ng-spice/patches/patch-aj13
2 files changed, 26 insertions, 0 deletions
diff --git a/cad/ng-spice/patches/patch-ai b/cad/ng-spice/patches/patch-ai
new file mode 100644
index 00000000000..b18473134a1
--- /dev/null
+++ b/cad/ng-spice/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2005/12/28 16:06:37 joerg Exp $
+
+--- src/misc/missing_math.c.orig 2005-12-28 15:49:50.000000000 +0000
++++ src/misc/missing_math.c
+@@ -100,7 +100,7 @@ erfc(double x)
+
+
+
+-#ifndef HAVE_ISNAN
++#if !defined(HAVE_ISNAN) && !defined(isnan)
+ /* isnan (originally) for SOI devices in MINGW32 hvogt (dev.c) */
+
+ union ieee754_double
diff --git a/cad/ng-spice/patches/patch-aj b/cad/ng-spice/patches/patch-aj
new file mode 100644
index 00000000000..3e0b7ac3e38
--- /dev/null
+++ b/cad/ng-spice/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2005/12/28 16:06:37 joerg Exp $
+
+--- src/misc/missing_math.h.orig 2005-12-28 15:49:19.000000000 +0000
++++ src/misc/missing_math.h
+@@ -20,7 +20,7 @@ double scalb(double, int);
+ # endif
+ #endif
+
+-#ifndef HAVE_ISNAN
++#if !defined(HAVE_ISNAN) && !defined(isnan)
+ int isnan(double value);
+ #endif /* HAVE_ISNAN */
+