Sorry for the combined patch. The changes became too inter-dependent.
[beagle.git] / glue / thread-glue.c
blob9bb56792cf418550eae24559eb01a4d907534019
1 #include <sys/types.h>
2 #include <unistd.h>
3 #include <linux/unistd.h>
4 #include <errno.h>
6 #ifdef __NR_gettid
7 static pid_t gettid (void)
9 return syscall(__NR_gettid);
11 #else
12 static pid_t gettid (void)
14 return 0;
16 #endif
18 pid_t
19 wrap_gettid (void)
21 return gettid ();