summaryrefslogtreecommitdiff
path: root/libc/debian/patches/math.h-feature.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libc/debian/patches/math.h-feature.patch')
-rw-r--r--libc/debian/patches/math.h-feature.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/debian/patches/math.h-feature.patch b/libc/debian/patches/math.h-feature.patch
new file mode 100644
index 0000000..2a8ca83
--- /dev/null
+++ b/libc/debian/patches/math.h-feature.patch
@@ -0,0 +1,15 @@
+Description: make sure C99 features are enabled in GCC's C99 mode
+Bug-Dyson: https://www.osdyson.org/issues/191
+Index: libc/usr/src/head/math.h
+===================================================================
+--- libc.orig/usr/src/head/math.h
++++ libc/usr/src/head/math.h
+@@ -29,6 +29,8 @@
+ #ifndef _MATH_H
+ #define _MATH_H
+
++#include <features.h>
++
+ #include <iso/math_iso.h>
+ #include <iso/math_c99.h>
+ #include <ieeefp.h>