This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 2/3] Use include_next to chain math_private.h headers.
---
sysdeps/i386/fpu/math_private.h | 8 +++++---
sysdeps/powerpc/fpu/math_private.h | 2 +-
sysdeps/x86_64/fpu/math_private.h | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/sysdeps/i386/fpu/math_private.h b/sysdeps/i386/fpu/math_private.h
index 8a51851..ed8658d 100644
--- a/sysdeps/i386/fpu/math_private.h
+++ b/sysdeps/i386/fpu/math_private.h
@@ -1,4 +1,5 @@
-#ifndef _MATH_PRIVATE_H
+#ifndef I386_MATH_PRIVATE_H
+#define I386_MATH_PRIVATE_H 1
#define math_opt_barrier(x) \
({ __typeof (x) __x; \
@@ -15,5 +16,6 @@ do \
} \
while (0)
-#include <math/math_private.h>
-#endif
+#include_next <math_private.h>
+
+#endif /* I386_MATH_PRIVATE_H */
diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h
index 28628f0..a916be3 100644
--- a/sysdeps/powerpc/fpu/math_private.h
+++ b/sysdeps/powerpc/fpu/math_private.h
@@ -23,7 +23,7 @@
#include <sysdep.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <math/math_private.h>
+#include_next <math_private.h>
# if __WORDSIZE == 64 || defined _ARCH_PWR4
# define __CPU_HAS_FSQRT 1
diff --git a/sysdeps/x86_64/fpu/math_private.h b/sysdeps/x86_64/fpu/math_private.h
index 9b8d31d..c8616f6 100644
--- a/sysdeps/x86_64/fpu/math_private.h
+++ b/sysdeps/x86_64/fpu/math_private.h
@@ -16,7 +16,7 @@
__asm __volatile ("" : : "f" (x)); \
} while (0)
-#include <math/math_private.h>
+#include_next <math_private.h>
/* We can do a few things better on x86-64. */
--
1.7.7.6