Add glibc gettid to wrapper
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 19 Apr 2021 14:53:05 +0000 (10:53 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Apr 2021 14:05:24 +0000 (10:05 -0400)
Change-Id: I706df1c63f49998336c4432575bc1fd31b91b91c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
src/common/compat/tid.h

index 66e07f7f2a2f91dddea213ffe20344b947b65344..032adea94597b029acfa092b5a414193be5d7951 100644 (file)
@@ -261,6 +261,7 @@ AC_CHECK_FUNCS([ \
   clock_gettime \
   ftruncate \
   getpagesize \
+  gettid \
   gettimeofday \
   localeconv \
   memchr \
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.035677 seconds and 4 git commands to generate.