summaryrefslogtreecommitdiff
path: root/libc/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'libc/debian/patches')
-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