Add glibc gettid to wrapper
[lttng-ust.git] / src / common / compat / tid.h
index aecae9b14f840961a35baf65841dd0e315ebcdac..3d38f976eb41ff42367583f3c87755848353b188 100644 (file)
 #include <sys/syscall.h>
 #endif
 
-#if defined(__NR_gettid)
+#ifdef HAVE_GETTID
+
+#include <unistd.h>
+static inline pid_t lttng_gettid(void)
+{
+       return gettid();
+}
+
+#elif defined(__NR_gettid)
 
 #include <unistd.h>
 static inline pid_t lttng_gettid(void)
This page took 0.023242 seconds and 4 git commands to generate.