This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Define _SYS_AUXV_H to 1 not empty in sysdeps/powerpc/sysdep.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: <ryan dot arnold at gmail dot com>
- Date: Tue, 4 Dec 2012 21:40:15 +0000
- Subject: Define _SYS_AUXV_H to 1 not empty in sysdeps/powerpc/sysdep.h
This is the last of the straightforward fixes for warnings I see
building for powerpc32 (hard-float, it's possible I might see more on
going back to soft-float testing having cleaned up the hard-float
noise). sysdep.h defines _SYS_AUXV_H before including <bits/hwcap.h>
(this is a kludge to avoid errors from the test that <bits/hwcap.h>
isn't included directly by a user), but defines it to empty, when the
real <sys/auxv.h> defines it to 1, so resulting in warnings about
macro redefinitions when both headers get included in the same file.
Fixed by defining it to 1 in sysdep.h.
I don't plan to do anything about the warnings from sotruss-lib.c
about lack of powerpc support there, but hope the powerpc maintainers
(and, likewise, the sh and s390 maintainers) will deal with those.
2012-12-04 Joseph Myers <joseph@codesourcery.com>
* sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
diff --git a/sysdeps/powerpc/sysdep.h b/sysdeps/powerpc/sysdep.h
index 302f559..85ff553 100644
--- a/sysdeps/powerpc/sysdep.h
+++ b/sysdeps/powerpc/sysdep.h
@@ -19,7 +19,7 @@
* Powerpc Feature masks for the Aux Vector Hardware Capabilities (AT_HWCAP).
* This entry is copied to _dl_hwcap or rtld_global._dl_hwcap during startup.
*/
-#define _SYS_AUXV_H
+#define _SYS_AUXV_H 1
#include <bits/hwcap.h>
#define PPC_FEATURE_970 (PPC_FEATURE_POWER4 + PPC_FEATURE_HAS_ALTIVEC)
--
Joseph S. Myers
joseph@codesourcery.com