Explorar o código

Declare __err and pass it to INTERNAL_SYSCALL_NCS so subsequent macros can use it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj %!s(int64=13) %!d(string=hai) anos
pai
achega
812ae602fe
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      libc/sysdeps/linux/common/bits/syscalls-common.h

+ 2 - 2
libc/sysdeps/linux/common/bits/syscalls-common.h

@@ -59,8 +59,8 @@
 #ifndef INLINE_SYSCALL_NOERR_NCS
 # define INLINE_SYSCALL_NOERR_NCS(name, nr, args...)			\
 ({									\
-	/*INTERNAL_SYSCALL_DECL(__err);*/					\
-	long __res = INTERNAL_SYSCALL_NCS(name, /*__err*/, nr, args);	\
+	INTERNAL_SYSCALL_DECL(__err);					\
+	long __res = INTERNAL_SYSCALL_NCS(name, __err, nr, args);	\
 	__res;								\
 })
 #endif