mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-11 05:22:40 -04:00
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
$NetBSD: patch-ah,v 1.3 2007/02/15 18:26:15 joerg Exp $
|
|
|
|
--- src/include/ivstd/nan.h.orig 2007-02-15 15:31:06.000000000 +0000
|
|
+++ src/include/ivstd/nan.h
|
|
@@ -3,7 +3,7 @@
|
|
|
|
#if defined(__GLIBC__) && (__GLIBC__==2 && __GLIBC_MINOR__>0 || __GLIBC__>2)
|
|
#include <bits/nan.h>
|
|
-#elif !defined(__CYGWIN__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__APPLE__)
|
|
+#elif !defined(__CYGWIN__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__DragonFly__)
|
|
#include_next <nan.h>
|
|
#else
|
|
#include <math.h>
|
|
@@ -12,7 +12,7 @@
|
|
#include <ieeefp.h>
|
|
#endif
|
|
|
|
-#if defined(__sun__) && defined(__svr4__) || defined(__CYGWIN__) || defined(__linux__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
|
|
+#if defined(__sun__) && defined(__svr4__) || defined(__CYGWIN__) || defined(__linux__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
|
|
#define isnanorinf(dval) (!finite(dval))
|
|
#elif defined(__alpha)
|
|
#define isnanorinf(dval) (IsNANorINF(dval))
|