summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-18 13:41:20 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-18 13:41:20 +0300
commit7d90c50aefc2aa1edda941bda2d19a3516a03ad7 (patch)
tree89b7d20c2854efe9f6c1ea3769de0c25658216be
parentb7d8d6db6e733656a1fd628859e4e6b1a6477a23 (diff)
downloadillumos-packaging-7d90c50aefc2aa1edda941bda2d19a3516a03ad7.tar.gz
Added debian/patches/libc-fp_data-__huge_val.patch
-rw-r--r--libc/debian/patches/libc-fp_data-__huge_val.patch19
-rw-r--r--libc/debian/patches/series1
2 files changed, 20 insertions, 0 deletions
diff --git a/libc/debian/patches/libc-fp_data-__huge_val.patch b/libc/debian/patches/libc-fp_data-__huge_val.patch
new file mode 100644
index 0000000..eb4f32c
--- /dev/null
+++ b/libc/debian/patches/libc-fp_data-__huge_val.patch
@@ -0,0 +1,19 @@
+Index: libc/usr/src/lib/libc/port/fp/fp_data.c
+===================================================================
+--- libc.orig/usr/src/lib/libc/port/fp/fp_data.c
++++ libc/usr/src/lib/libc/port/fp/fp_data.c
+@@ -45,10 +45,10 @@
+
+ #include <sys/feature_tests.h>
+
+-#undef _STDC_C99 /* to force the definition of '_h_val' */
+-#undef __C99FEATURES__ /* to force the definition of '_h_val' */
+-
+-#include <math.h> /* for '_h_val' */
++typedef union _h_val {
++ unsigned long _i[sizeof (double) / sizeof (unsigned long)];
++ double _d;
++} _h_val;
+
+ /* IEEE infinity */
+ const _h_val __huge_val =
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index 53e063d..a8bd585 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -132,3 +132,4 @@ rtld-mmapobj.patch
__time_t.patch
struct-tm.patch
libc-no-gets.patch
+libc-fp_data-__huge_val.patch