[vlc-commits] Use Linux kernel syntax instead of old Unix for Linux syscalls

Rémi Denis-Courmont git at videolan.org
Mon Sep 10 23:37:32 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep 11 00:35:15 2012 +0300| [a597327aa902f85e055aa455ae5ee0060544b8a4] | committer: Rémi Denis-Courmont

Use Linux kernel syntax instead of old Unix for Linux syscalls

The code is Linux-specific anyway.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a597327aa902f85e055aa455ae5ee0060544b8a4
---

 src/posix/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/posix/thread.c b/src/posix/thread.c
index 29d8a5f..c414def 100644
--- a/src/posix/thread.c
+++ b/src/posix/thread.c
@@ -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 = { };



More information about the vlc-commits mailing list