diff options
author | jklos <jklos@pkgsrc.org> | 2010-03-25 04:39:01 +0000 |
---|---|---|
committer | jklos <jklos@pkgsrc.org> | 2010-03-25 04:39:01 +0000 |
commit | 78e1282033d641373c72fdde3fd2fade3dfc8fb9 (patch) | |
tree | a15e126a26d17ee47ab3794e47babd504abf61c8 /devel/m4/patches | |
parent | 0f59e13c66adb45210c90f606254aef23367e338 (diff) | |
download | pkgsrc-78e1282033d641373c72fdde3fd2fade3dfc8fb9.tar.gz |
Skip broken NaN and infinity handling on VAX. May not strictly be
"correct", but VAX doesn't support NaN and infinity in its floating point,
so this is just to make m4 build on VAX.
Diffstat (limited to 'devel/m4/patches')
-rw-r--r-- | devel/m4/patches/patch-aa | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/m4/patches/patch-aa b/devel/m4/patches/patch-aa new file mode 100644 index 00000000000..94ec2134090 --- /dev/null +++ b/devel/m4/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.13 2010/03/25 04:39:01 jklos Exp $ + +--- lib/isnan.c.orig 2010-03-24 21:31:20.000000000 +0000 ++++ lib/isnan.c +@@ -117,7 +117,7 @@ FUNC (DOUBLE x) + # else + /* Be careful to not do any floating-point operation on x, such as x == x, + because x may be a signaling NaN. */ +-# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__) ++# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__) || defined __vax__ + /* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't + recognize the initializers as constant expressions. The latter compiler + also fails when constant-folding 0.0 / 0.0 even when constant-folding is |