Do not rely on glibc name of syscall.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Mon, 12 Mar 2012 15:37:26 +0000 (16:37 +0100)
committerMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Mon, 12 Mar 2012 15:37:26 +0000 (16:37 +0100)
* src/ath.c (ath_self): Use __NR_gettid, not SYS_gettid.

src/ath.c

index e5b9964ebc95edb9da788ae6ef0db87138ce0a06..ab65f7eb69e5443c9b88dbb92b3c092b93cd0314 100644 (file)
--- a/src/ath.c
+++ b/src/ath.c
@@ -67,7 +67,7 @@ uintptr_t
 ath_self (void)
 {
   /* Just to catch users who don't use gpgme-pthread.  */
-  return (uintptr_t) syscall (SYS_gettid);
+  return (uintptr_t) syscall (__NR_gettid);
 }
 # else
 uintptr_t