summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-10-08 16:22:37 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-10-08 16:29:24 +0300
commit6333495298bc8bf2faa3b2e390e5bb3c005db08f (patch)
tree0bd19e37f2ed70d75fae92b16a9f00fbc19cfaea
parent822c90f75dcb1b732d3a914748d2aa703eaa10ed (diff)
downloadillumos-packaging-6333495298bc8bf2faa3b2e390e5bb3c005db08f.tar.gz
libc: math.h to include feature.h
-rw-r--r--libc/debian/patches/math.h-feature.patch15
-rw-r--r--libc/debian/patches/series1
2 files changed, 16 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>
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index bd1c020..0a75e94 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -142,3 +142,4 @@ localedef-prog-only.patch
illumos-6993.patch
libc-add-cfsetspeed.patch
libc-math-include-ieeefp.patch
+math.h-feature.patch