summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/debian/patches/libm-macro.patch18
-rw-r--r--libc/debian/patches/series1
2 files changed, 19 insertions, 0 deletions
diff --git a/libc/debian/patches/libm-macro.patch b/libc/debian/patches/libm-macro.patch
new file mode 100644
index 0000000..06551cb
--- /dev/null
+++ b/libc/debian/patches/libm-macro.patch
@@ -0,0 +1,18 @@
+Index: libc/usr/src/lib/libm/common/C/libm_protos.h
+===================================================================
+--- libc.orig/usr/src/lib/libm/common/C/libm_protos.h
++++ libc/usr/src/lib/libm/common/C/libm_protos.h
+@@ -40,11 +40,13 @@
+ #define __rem_pio2m __libm__rem_pio2m
+
+ #ifndef _ASM
++#ifndef __P
+ #ifdef __STDC__
+ #define __P(p) p
+ #else
+ #define __P(p) ()
+ #endif
++#endif
+
+ #include <sys/ieeefp.h>
+
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index b8bb1eb..208ba21 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -144,3 +144,4 @@ libc-add-cfsetspeed.patch
libc-math-include-ieeefp.patch
math.h-feature.patch
nameser.h-types.patch
+libm-macro.patch