summaryrefslogtreecommitdiff
path: root/math/py-numpy/files/patch-numpy-core-include-numpy-ufuncobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-numpy/files/patch-numpy-core-include-numpy-ufuncobject.h')
-rw-r--r--math/py-numpy/files/patch-numpy-core-include-numpy-ufuncobject.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/math/py-numpy/files/patch-numpy-core-include-numpy-ufuncobject.h b/math/py-numpy/files/patch-numpy-core-include-numpy-ufuncobject.h
new file mode 100644
index 000000000000..3382e09819b9
--- /dev/null
+++ b/math/py-numpy/files/patch-numpy-core-include-numpy-ufuncobject.h
@@ -0,0 +1,26 @@
+--- numpy/core/include/numpy/ufuncobject.h.orig Wed Sep 13 22:22:47 2006
++++ numpy/core/include/numpy/ufuncobject.h Fri Sep 29 16:35:25 2006
+@@ -251,7 +251,10 @@
+ /* Solaris --------------------------------------------------------*/
+ /* --------ignoring SunOS ieee_flags approach, someone else can
+ ** deal with that! */
+-#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++#elif defined(sun) || defined(__BSD__) || defined(__OpenBSD__) || (defined(__FreeBSD__) && (__FreeBSD_version < 502114)) || defined(__NetBSD__)
+ #include <ieeefp.h>
+
+ #define UFUNC_CHECK_STATUS(ret) { \
+@@ -265,9 +268,9 @@
+ (void) fpsetsticky(0); \
+ }
+
+-#elif defined(linux) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
++#elif defined(linux) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
+
+-#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__)
++#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
+ #include <fenv.h>
+ #elif defined(__CYGWIN__)
+ #include "fenv/fenv.c"