[lttng-dev] [PATCH lttng-tools] Fix: Add missing pthread.h include

Michael Jeanson mjeanson at efficios.com
Mon Dec 5 20:39:26 UTC 2016


Some libc like musl and uClibc requires explicit includes of pthread.h

Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 src/common/defaults.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common/defaults.h b/src/common/defaults.h
index 27f1ddc..37d222a 100644
--- a/src/common/defaults.h
+++ b/src/common/defaults.h
@@ -20,6 +20,7 @@
 #ifndef _DEFAULTS_H
 #define _DEFAULTS_H
 
+#include <pthread.h>
 #include <src/common/macros.h>
 
 /* Default unix group name for tracing. */
-- 
2.7.4



More information about the lttng-dev mailing list