浏览代码

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 13 年之前
父节点
当前提交
812ae602fe
共有 1 个文件被更改,包括 2 次插入2 次删除
  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