Change-Id: I706df1c63f49998336c4432575bc1fd31b91b91c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
clock_gettime \
ftruncate \
getpagesize \
+ gettid \
gettimeofday \
localeconv \
memchr \
#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)