summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2015-04-17 17:25:36 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-21 07:20:24 +0100
commit1e4c6e8f2e0e8c8d0b5b05420c3e4903ec791468 (patch)
treec0e76112f17e4fd11f316e7bd5650c4e0fde1714 /meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch
parent869a770ba4f5c5d69064c40a7e52a3c3ee8baf3d (diff)
downloadpoky-1e4c6e8f2e0e8c8d0b5b05420c3e4903ec791468.tar.gz
strace: fixes for compilation failures with musl
Backports from upstream: http://sourceforge.net/p/strace/code/ci/d34e00b293942b1012ddc49ed3ab379a32337611 http://sourceforge.net/p/strace/code/ci/3460dc486d333231998de0f19918204aacee9ae3 Expected to be released officially as part of strace 4.11 (From OE-Core rev: 7d40c6ff1d1d64ebeeffb6bfc200dcd84861214a) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch')
-rw-r--r--meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch b/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch
new file mode 100644
index 0000000000..0b072fe533
--- /dev/null
+++ b/meta/recipes-devtools/strace/strace/Include-sys-stat.h-for-S_I-macros.patch
@@ -0,0 +1,52 @@
1Upstream-Status: Backport
2
3 http://sourceforge.net/p/strace/code/ci/d34e00b293942b1012ddc49ed3ab379a32337611
4
5Expected to be released officially as part of strace 4.11
6
7Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
8
9From d34e00b293942b1012ddc49ed3ab379a32337611 Mon Sep 17 00:00:00 2001
10From: Felix Janda <felix.janda@posteo.de>
11Date: Sat, 28 Mar 2015 18:21:09 +0100
12Subject: [PATCH] Include <sys/stat.h> for S_I* macros
13
14Fix a compilation failure with musl libc.
15
16* mknod.c: Include <sys/stat.h>.
17* printmode.c: Likewise.
18
19Reported-by: Dima Krasner <dima@dimakrasner.com>
20Acked-by: Mike Frysinger <vapier@gentoo.org>
21---
22 mknod.c | 1 +
23 printmode.c | 1 +
24 2 files changed, 2 insertions(+)
25
26diff --git a/mknod.c b/mknod.c
27index 07e9a45..1463232 100644
28--- a/mknod.c
29+++ b/mknod.c
30@@ -1,6 +1,7 @@
31 #include "defs.h"
32
33 #include <fcntl.h>
34+#include <sys/stat.h>
35
36 #ifdef MAJOR_IN_SYSMACROS
37 # include <sys/sysmacros.h>
38diff --git a/printmode.c b/printmode.c
39index 4df1b9f..a721936 100644
40--- a/printmode.c
41+++ b/printmode.c
42@@ -1,6 +1,7 @@
43 #include "defs.h"
44
45 #include <fcntl.h>
46+#include <sys/stat.h>
47
48 #include "xlat/modetypes.h"
49
50--
511.9.1
52