summaryrefslogtreecommitdiff
path: root/converters/wv2/patches/patch-aa
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-08 13:52:58 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-08 13:52:58 +0000
commit2494eec21a9919b44ce475c78b1d0d0380f7f5b7 (patch)
tree27296d824b5d99bc020170fd82ae6517a9b2c66e /converters/wv2/patches/patch-aa
parentcabe7802c6a4da9f1e8515793214f054cd6a5468 (diff)
downloadpkgsrc-2494eec21a9919b44ce475c78b1d0d0380f7f5b7.tar.gz
Let us repeat: isnan is not a function. It does not have external
linkage for C99, so don't try to detect it as such.
Diffstat (limited to 'converters/wv2/patches/patch-aa')
-rw-r--r--converters/wv2/patches/patch-aa27
1 files changed, 26 insertions, 1 deletions
diff --git a/converters/wv2/patches/patch-aa b/converters/wv2/patches/patch-aa
index 18830e30daf..c016b8638ec 100644
--- a/converters/wv2/patches/patch-aa
+++ b/converters/wv2/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1 2004/11/18 10:20:00 shannonjr Exp $
+$NetBSD: patch-aa,v 1.2 2005/11/08 13:52:58 joerg Exp $
--- configure.orig 2004-05-09 14:23:32.000000000 -0600
+++ configure
@@ -31,3 +31,28 @@ $NetBSD: patch-aa,v 1.1 2004/11/18 10:20:00 shannonjr Exp $
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
+@@ -13961,6 +13961,7 @@ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
++#include <math.h>
+
+ /* Override any gcc2 internal prototype to avoid an error. */
+ #ifdef __cplusplus
+@@ -13968,13 +13969,12 @@ extern "C"
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+-char isnan ();
++double val = 0.0;
++
+ int
+ main ()
+ {
+-isnan ();
+- ;
+- return 0;
++ return isnan (val);
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext conftest$ac_exeext