projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add glibc gettid to wrapper
[lttng-ust.git]
/
src
/
common
/
compat
/
tid.h
diff --git
a/src/common/compat/tid.h
b/src/common/compat/tid.h
index aecae9b14f840961a35baf65841dd0e315ebcdac..3d38f976eb41ff42367583f3c87755848353b188 100644
(file)
--- a/
src/common/compat/tid.h
+++ b/
src/common/compat/tid.h
@@
-13,7
+13,15
@@
#include <sys/syscall.h>
#endif
#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)
#include <unistd.h>
static inline pid_t lttng_gettid(void)
This page took
0.024179 seconds
and
4
git commands to generate.