commit 9de86e408b7b23c20131587667e3fdc5f7dad749 Author: Linus Nordberg linus@nordberg.se Date: Sun Aug 25 10:39:12 2013 +0200
Use SYS_ from <sys/syscall.h>.
__NR_ are not portable.
Signed-off-by: David Goulet dgoulet@ev0ke.net --- src/lib/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/syscall.c b/src/lib/syscall.c index c2cd114..af60060 100644 --- a/src/lib/syscall.c +++ b/src/lib/syscall.c @@ -74,13 +74,13 @@ LIBC_SYSCALL_RET_TYPE tsocks_syscall(long int __number, va_list args) DBG("[syscall] Syscall libc wrapper number %ld called", __number);
switch (__number) { - case __NR_socket: + case SYS_socket: ret = handle_socket(args); break; - case __NR_connect: + case SYS_connect: ret = handle_connect(args); break; - case __NR_close: + case SYS_close: ret = handle_close(args); break; default:
tor-commits@lists.torproject.org