]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86_64: Fix build with RTLD_PRIVATE_ERRNO defined to 1
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 18 Mar 2018 01:11:56 +0000 (02:11 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 18 Mar 2018 01:11:56 +0000 (02:11 +0100)
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
<dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
testing whether it is defined.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/sysdep.h

index 2fe1850e218f1a19b2561955d96ddad46e3d4e0a..b9f90147f99cb9f2b764e856fccd9b5e288f7502 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        cthread_setspecific.
        * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
        Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
+       <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
+       testing whether it is defined.
 
 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
index b9b9bf9cd3f38cdc141d6a190792b013e16b3a16..1ef0f742aefb849b234a3695c21f987a2926bd07 100644 (file)
@@ -23,9 +23,8 @@
 #include <sysdeps/unix/x86_64/sysdep.h>
 #include <tls.h>
 
-#if IS_IN (rtld)
-# include <dl-sysdep.h>                /* Defines RTLD_PRIVATE_ERRNO.  */
-#endif
+/* Defines RTLD_PRIVATE_ERRNO.  */
+#include <dl-sysdep.h>
 
 /* For Linux we can use the system call table in the header file
        /usr/include/asm/unistd.h
 
 # define ret_ERRVAL ret
 
-# if defined PIC && defined RTLD_PRIVATE_ERRNO
+# if defined PIC && RTLD_PRIVATE_ERRNO
 #  define SYSCALL_SET_ERRNO                    \
   lea rtld_errno(%rip), %RCX_LP;               \
   neg %eax;                                    \