summaryrefslogtreecommitdiff
path: root/libc/debian/patches/math.h-exclude-floatingpoint.h.patch
blob: 52119291fee7f638d82976caad36d4d3da85f039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Subject: Inclusion of floatingpoint.h may cause troubles
in other packages, for example, GCC's Modula-2 sources
define variable EOF and when compiled (into C) conflicts
with the EOF macro which is defined in stdio.h which is pulled
in from floatingpoint.h.
This header and the corresponding functions are Solaris extention
and can be use explicitly if needed.
Index: libc/usr/src/head/math.h
===================================================================
--- libc.orig/usr/src/head/math.h
+++ libc/usr/src/head/math.h
@@ -337,9 +337,6 @@ extern float modff __P((float, float *))
 #endif
 /* END adopted by C99 */
 
-#if defined(__EXTENSIONS__) || !defined(__cplusplus)
-#include <floatingpoint.h>
-#endif
 #endif	/* defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) */
 #endif	/* defined(__EXTENSIONS__) || defined(_XOPEN_SOURCE) || ... */
 
Index: libc/usr/src/lib/libm/common/m9x/__fex_hdlr.c
===================================================================
--- libc.orig/usr/src/lib/libm/common/m9x/__fex_hdlr.c
+++ libc/usr/src/lib/libm/common/m9x/__fex_hdlr.c
@@ -36,6 +36,7 @@
 #include <unistd.h>
 #include <thread.h>
 #include <math.h>
+#include <sys/ieeefp.h>
 #if defined(__SUNPRO_C)
 #include <sunmath.h>
 #endif
Index: libc/usr/src/lib/libm/common/m9x/__fex_i386.c
===================================================================
--- libc.orig/usr/src/lib/libm/common/m9x/__fex_i386.c
+++ libc/usr/src/lib/libm/common/m9x/__fex_i386.c
@@ -36,6 +36,7 @@
 #include <ucontext.h>
 #include <thread.h>
 #include <math.h>
+#include <sys/ieeefp.h>
 #if defined(__SUNPRO_C)
 #include <sunmath.h>
 #endif