Alexandre Julliard : server: Use the __NR_ names for Linux system calls.

Alexandre Julliard julliard at winehq.org
Tue Jan 22 14:52:21 CST 2013


Module: wine
Branch: master
Commit: 2b95df8fbdcf7069ddea0db5490c8c4e005d6e15
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2b95df8fbdcf7069ddea0db5490c8c4e005d6e15

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 21 21:37:10 2013 +0100

server: Use the __NR_ names for Linux system calls.

---

 server/ptrace.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/ptrace.c b/server/ptrace.c
index 19ec7da..db2804a 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -203,8 +203,8 @@ static int waitpid_thread( struct thread *thread, int signal )
 static inline int tkill( int tgid, int pid, int sig )
 {
 #ifdef __linux__
-    int ret = syscall( SYS_tgkill, tgid, pid, sig );
-    if (ret < 0 && errno == ENOSYS) ret = syscall( SYS_tkill, pid, sig );
+    int ret = syscall( __NR_tgkill, tgid, pid, sig );
+    if (ret < 0 && errno == ENOSYS) ret = syscall( __NR_tkill, pid, sig );
     return ret;
 #elif (defined(__FreeBSD__) || defined (__FreeBSD_kernel__)) && defined(HAVE_THR_KILL2)
     return thr_kill2( tgid, pid, sig );




More information about the wine-cvs mailing list