summaryrefslogtreecommitdiff
path: root/devel/mico/files/patch-include::os-math.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mico/files/patch-include::os-math.h')
-rw-r--r--devel/mico/files/patch-include::os-math.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/mico/files/patch-include::os-math.h b/devel/mico/files/patch-include::os-math.h
new file mode 100644
index 000000000000..26c13c173b30
--- /dev/null
+++ b/devel/mico/files/patch-include::os-math.h
@@ -0,0 +1,24 @@
+--- os-math.h.orig Mon May 26 14:55:46 2003
++++ include/mico/os-math.h Tue Jun 24 02:20:33 2003
+@@ -275,6 +275,21 @@
+ };
+
+ #else // neither _WIN32 nor _POCKET_PC
++#include <sys/param.h>
++#if (defined(__FreeBSD__) && __FreeBSD_version >= 500035)
++#ifndef fpclassify
++#define fpclassify(x) \
++ ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \
++ : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \
++ : __fpclassifyl(x))
++#endif
++#ifndef isinf
++#define isinf(x) (fpclassify(x) == FP_INFINITE)
++#endif
++#ifndef isnan
++#define isnan(x) (fpclassify(x) == FP_NAN)
++#endif
++#endif
+
+ #include <unistd.h>
+ #include <signal.h>