]> git.sesse.net Git - vlc/commitdiff
Use Linux kernel syntax instead of old Unix for Linux syscalls
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 10 Sep 2012 21:35:15 +0000 (00:35 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 10 Sep 2012 21:35:15 +0000 (00:35 +0300)
The code is Linux-specific anyway.

src/posix/thread.c

index 29d8a5fbc019ac23ebc2ec086991a73c5634e34b..c414def15b8ac6478d39e8c00d8ad9230b0907a2 100644 (file)
@@ -143,7 +143,7 @@ static inline unsigned long vlc_threadid (void)
 {
 #if defined (__linux__)
      /* glibc does not provide a call for this */
-     return syscall (SYS_gettid);
+     return syscall (__NR_gettid);
 
 #else
      union { pthread_t th; unsigned long int i; } v = { };