From dd28d4ba978abd9f6da0a223614d7f0d33b305a7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 18 Mar 2018 02:11:56 +0100 Subject: x86_64: Fix build with RTLD_PRIVATE_ERRNO defined to 1 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include . Test for value of RTLD_PRIVATE_ERRNO instead of testing whether it is defined. --- sysdeps/unix/sysv/linux/x86_64/sysdep.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sysdeps/unix/sysv/linux/x86_64') diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h index b9b9bf9cd3..1ef0f742ae 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h +++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h @@ -23,9 +23,8 @@ #include #include -#if IS_IN (rtld) -# include /* Defines RTLD_PRIVATE_ERRNO. */ -#endif +/* Defines RTLD_PRIVATE_ERRNO. */ +#include /* For Linux we can use the system call table in the header file /usr/include/asm/unistd.h @@ -110,7 +109,7 @@ # 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; \ -- cgit 1.4.1