update syscalls
[lttv.git] / ltt-usertrace / ltt-usertrace-fast.c
index 2d22ce9b98a45dd1fb2500ea63a31e1bf5f9088e..17da6cd8cf2a4d05b97bf6bf353e141643859dcf 100644 (file)
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
-#include <linux/unistd.h>
+#include <unistd.h>
+#include <sys/syscall.h>
 
 // included with hack for powerpc in ltt-usertrace.h #include <asm/atomic.h>
 #include <asm/timex.h> //for get_cycles()
 
 #include <ltt/ltt-usertrace.h>
 
-_syscall0(pid_t,gettid);
+#define gettid() syscall(__NR_gettid)
 
 #ifdef LTT_SHOW_DEBUG
 #define dbg_printf(...) printf(__VA_ARGS__)
This page took 0.022681 seconds and 4 git commands to generate.