]> sourceware.org Git - glibc.git/commitdiff
ARM: Don't define _SYS_AUXV_H in sysdep.h
authorWill Newton <will.newton@linaro.org>
Thu, 11 Sep 2014 16:47:53 +0000 (17:47 +0100)
committerWill Newton <will.newton@linaro.org>
Tue, 23 Sep 2014 13:58:49 +0000 (14:58 +0100)
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.

ChangeLog
sysdeps/unix/sysv/linux/arm/bits/hwcap.h
sysdeps/unix/sysv/linux/arm/sysdep.h

index eaa16ced19d1e380d12ea191262ad5231e83770f..7fa614ca0c76c1e9e47dd2b1c5d3e3fe9a682a27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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:
index cd8f93cf0ad57a882543144261c07a523238d60b..2ddc5a635e4ae41dc86dd224e6063b3bab07bf06 100644 (file)
@@ -16,7 +16,7 @@
    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
 
index 52e27d04436c49cfd5228220f42e0ea80434c514..91bdca5226726b438bc7ec5a828e55a4234a24ab 100644 (file)
@@ -40,7 +40,6 @@
 #undef SYS_ify
 #define SYS_ify(syscall_name)  (__NR_##syscall_name)
 
-#define _SYS_AUXV_H 1
 #include <bits/hwcap.h>
 
 #ifdef __ASSEMBLER__
This page took 0.118008 seconds and 5 git commands to generate.