Root/toolchain/uClibc/patches-0.9.33/001-backport-Declare-__err-and-pass-it-to-INTERNAL_SYSCALL_NCS-so.patch

1From 812ae602fe96bb40d1743d410eb1eadb6aa722f5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 3 Feb 2012 10:57:44 -0800
4Subject: [PATCH] Declare __err and pass it to INTERNAL_SYSCALL_NCS so subsequent macros can use it
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 libc/sysdeps/linux/common/bits/syscalls-common.h | 4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/libc/sysdeps/linux/common/bits/syscalls-common.h b/libc/sysdeps/linux/common/bits/syscalls-common.h
12index faebd1b..0f5a929 100644
13--- a/libc/sysdeps/linux/common/bits/syscalls-common.h
14+++ b/libc/sysdeps/linux/common/bits/syscalls-common.h
15@@ -59,8 +59,8 @@
16 #ifndef INLINE_SYSCALL_NOERR_NCS
17 # define INLINE_SYSCALL_NOERR_NCS(name, nr, args...) \
18 ({ \
19- /*INTERNAL_SYSCALL_DECL(__err);*/ \
20- long __res = INTERNAL_SYSCALL_NCS(name, /*__err*/, nr, args); \
21+ INTERNAL_SYSCALL_DECL(__err); \
22+ long __res = INTERNAL_SYSCALL_NCS(name, __err, nr, args); \
23     __res; \
24 })
25 #endif
26--
271.7.2.1
28
29

Archive Download this file



interactive