sysdep.h was defining _SYS_AUXV_H in order to avoid an include guard check
in hwcap.h. Unfortunately it didn't undefine it so it could leak out into
code and caused a build failure with -Wimplicit-function-declaration
building tst-auxv on ARM.
ChangeLog:
2014-09-23 Will Newton <will.newton@linaro.org>
* sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
_LINUX_ARM_SYSDEP_H include guard too.
* sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
define.
+2014-09-23 Will Newton <will.newton@linaro.org>
+
+ * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
+ _LINUX_ARM_SYSDEP_H include guard too.
+ * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
+ define.
+
2014-09-20 Rasmus Villemoes <rv@rasmusvillemoes.dk>
* sysdeps/unix/sysv/linux/eventfd.c:
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
-#ifndef _SYS_AUXV_H
+#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
#endif
#undef SYS_ify
#define SYS_ify(syscall_name) (__NR_##syscall_name)
-#define _SYS_AUXV_H 1
#include <bits/hwcap.h>
#ifdef __ASSEMBLER__