summaryrefslogtreecommitdiffstats
path: root/package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2016-03-08 20:28:11 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-08 21:00:08 +0100
commit4a51f2d05ce69f57294f1e81ea156082e520d8e3 (patch)
tree318a78ba3c2d678b4ca281791d40b123d6112b5a /package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch
parent09f020105ff507845509374025c1fdfa7fda805f (diff)
downloadbuildroot-4a51f2d05ce69f57294f1e81ea156082e520d8e3.tar.gz
buildroot-4a51f2d05ce69f57294f1e81ea156082e520d8e3.zip
lttng-tools: fix musl build
Add two patches fixing musl build issues: * musl doesn't provide the __GLIBC_PREREQ macro * musl requires sys/types.h for mode_t Fixes: http://autobuild.buildroot.net/results/ac9/ac9aa3b6c468a0a6ba84758d3c9c8acc20d7fa00/ http://autobuild.buildroot.net/results/40f/40f11afb0512a89dcdad332d28ff1c5fcc435e7f/ http://autobuild.buildroot.net/results/3c6/3c66b5f05b482f33d1bc6eabe817f6d7aa21086d/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch')
-rw-r--r--package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch b/package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch
new file mode 100644
index 0000000000..5ce2da52dc
--- /dev/null
+++ b/package/lttng-tools/0002-Fix-add-missing-sys-types.h-header.patch
@@ -0,0 +1,29 @@
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Tue, 8 Mar 2016 14:40:49 +0200
+Subject: [PATCH] Fix: add missing sys/types.h header
+
+The musl C library requires inclusion of sys/types.h for mode_t.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Patch status: sent upstream
+(http://lists.lttng.org/pipermail/lttng-dev/2016-March/025594.html)
+
+ src/common/runas.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/common/runas.h b/src/common/runas.h
+index 2c5565af3646..ac1143eecf84 100644
+--- a/src/common/runas.h
++++ b/src/common/runas.h
+@@ -19,6 +19,7 @@
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
++#include <sys/types.h>
+ #include <unistd.h>
+ #include <pthread.h>
+
+--
+2.7.0
+
OpenPOWER on IntegriCloud