OSDN Git Service

Declare __err and pass it to INTERNAL_SYSCALL_NCS so subsequent macros can use it
authorKhem Raj <raj.khem@gmail.com>
Fri, 3 Feb 2012 18:57:44 +0000 (10:57 -0800)
committerKhem Raj <raj.khem@gmail.com>
Sun, 5 Feb 2012 20:11:10 +0000 (12:11 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
libc/sysdeps/linux/common/bits/syscalls-common.h

index faebd1b..0f5a929 100644 (file)
@@ -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