[lttng-dev] [PATCH lttng-tools 07/24] Fix : need to include config.h if using it's definitions

Charles Briere c.briere at samsung.com
Mon Oct 27 16:49:28 EDT 2014


From: Charles Briere <c.briere at samsung.com>

Signed-off-by: Charles Briere <c.briere at samsung.com>
---
 src/common/compat/tid.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/common/compat/tid.h b/src/common/compat/tid.h
index b420914..7645b90 100644
--- a/src/common/compat/tid.h
+++ b/src/common/compat/tid.h
@@ -25,9 +25,7 @@
 #ifndef LTTNG_TID_H
 #define LTTNG_TID_H
 
-#ifdef __linux__
-#include <syscall.h>
-#endif
+#include <config.h>
 
 #if !HAVE_DECL_GETTID
 # if defined(_syscall0)
-- 
2.1.2



More information about the lttng-dev mailing list