aboutsummaryrefslogtreecommitdiff
path: root/lang/racket-minimal/files/patch-racket_include_scheme.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/racket-minimal/files/patch-racket_include_scheme.h')
-rw-r--r--lang/racket-minimal/files/patch-racket_include_scheme.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/racket-minimal/files/patch-racket_include_scheme.h b/lang/racket-minimal/files/patch-racket_include_scheme.h
new file mode 100644
index 000000000000..6d6545b3952e
--- /dev/null
+++ b/lang/racket-minimal/files/patch-racket_include_scheme.h
@@ -0,0 +1,18 @@
+
+$FreeBSD$
+
+--- racket/include/scheme.h.orig
++++ racket/include/scheme.h
+@@ -63,10 +63,12 @@
+ # define MZ_USE_SINGLE_FLOATS
+ #endif
+
++#if (__FreeBSD_version >= 1000100)
+ /* gcc defines __SSE_MATH__ when SSE floating point is enabled: */
+ #ifdef __SSE_MATH__
+ # define C_COMPILER_USES_SSE 1
+ #endif
++#endif
+
+ #ifdef C_COMPILER_USES_SSE
+ # if defined(MZ_TRY_EXTFLONUMS) && !defined(MZ_NO_EXTFLONUMS)