summaryrefslogtreecommitdiff
path: root/usr.bin/sort
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-03-29 18:47:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-03-29 18:47:20 +0000
commit2516adc6dd858f9957b81bc394b5edad417b3208 (patch)
treeb526e1b554f91ab2abb9ed9924d3b2dbd5d4014f /usr.bin/sort
parenta95beab19433d3a6df179e7b93abc34e3381ba65 (diff)
Fix build on vax, a problem FreeBSD doesn't have.
Why they don't trust isnan() is beyond me.
Diffstat (limited to 'usr.bin/sort')
-rw-r--r--usr.bin/sort/coll.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/sort/coll.c b/usr.bin/sort/coll.c
index 047b15b4810..042c4d7bb33 100644
--- a/usr.bin/sort/coll.c
+++ b/usr.bin/sort/coll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: coll.c,v 1.2 2015/03/17 17:49:27 millert Exp $ */
+/* $OpenBSD: coll.c,v 1.3 2015/03/29 18:47:19 miod Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -1075,8 +1075,11 @@ huge_plus(double d, int err1)
static bool
is_nan(double d)
{
-
+#if defined(NAN)
return (d == NAN || isnan(d));
+#else
+ return (isnan(d));
+#endif
}
/*