summaryrefslogtreecommitdiffstats
path: root/package/lttng-tools
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-07 22:37:19 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-07 22:37:19 +0100
commit041c717ec8c251b7bca675086510840f02274967 (patch)
tree74555f70f372a72ca77fe8fe6cf48fcc66b779af /package/lttng-tools
parent8dbd27fe48fdcdfee4552c2fb58e422974152daa (diff)
downloadbuildroot-041c717ec8c251b7bca675086510840f02274967.tar.gz
buildroot-041c717ec8c251b7bca675086510840f02274967.zip
lttng-tools: fix build on musl
Add patch to add a missing <pthread.h> include to fix the build on musl. Fixes: http://autobuild.buildroot.net/results/ce0b438ca4dcf7ccef95c7050305d8cd58fbb24a/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lttng-tools')
-rw-r--r--package/lttng-tools/0001-Fix-Add-missing-pthread.h-include.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/lttng-tools/0001-Fix-Add-missing-pthread.h-include.patch b/package/lttng-tools/0001-Fix-Add-missing-pthread.h-include.patch
new file mode 100644
index 0000000000..29706afc61
--- /dev/null
+++ b/package/lttng-tools/0001-Fix-Add-missing-pthread.h-include.patch
@@ -0,0 +1,29 @@
+From c948391121f2eb411bc7d2049d96f267bfa643d8 Mon Sep 17 00:00:00 2001
+From: Michael Jeanson <mjeanson@efficios.com>
+Date: Mon, 5 Dec 2016 15:39:26 -0500
+Subject: [PATCH] Fix: Add missing pthread.h include
+
+Some libc like musl and uClibc requires explicit includes of pthread.h
+
+Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
+[Thomas: taken from lttng mailing list.]
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.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
+
OpenPOWER on IntegriCloud