diff options
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-lib/0001-topology-Add-missing-include-sys-stat.h.patch')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-lib/0001-topology-Add-missing-include-sys-stat.h.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-lib/0001-topology-Add-missing-include-sys-stat.h.patch b/meta/recipes-multimedia/alsa/alsa-lib/0001-topology-Add-missing-include-sys-stat.h.patch new file mode 100644 index 0000000000..0ead0cdafe --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-lib/0001-topology-Add-missing-include-sys-stat.h.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 3f1dba9a821b53b42001605f9a126a958804884f Mon Sep 17 00:00:00 2001 | ||
2 | From: Takashi Iwai <tiwai@suse.de> | ||
3 | Date: Mon, 9 Nov 2015 13:37:26 +0100 | ||
4 | Subject: [PATCH] topology: Add missing include sys/stat.h | ||
5 | |||
6 | Necessary for proper definitions of S_IRUSR & co. Otherwise it | ||
7 | results in compile errors with old glibc and uclibc: | ||
8 | parser.c: In function 'snd_tplg_build_file': | ||
9 | parser.c:262: error: 'S_IRUSR' undeclared (first use in this function) | ||
10 | parser.c:262: error: (Each undeclared identifier is reported only once | ||
11 | parser.c:262: error: for each function it appears in.) | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | |||
15 | Signed-off-by: Takashi Iwai <tiwai@suse.de> | ||
16 | Signed-off-by: Maxin B. John <maxin.john@intel.com> | ||
17 | --- | ||
18 | src/topology/parser.c | 1 + | ||
19 | 1 file changed, 1 insertion(+) | ||
20 | |||
21 | diff --git a/src/topology/parser.c b/src/topology/parser.c | ||
22 | index 80a0ae0..18bb9c7 100644 | ||
23 | --- a/src/topology/parser.c | ||
24 | +++ b/src/topology/parser.c | ||
25 | @@ -16,6 +16,7 @@ | ||
26 | Liam Girdwood <liam.r.girdwood@linux.intel.com> | ||
27 | */ | ||
28 | |||
29 | +#include <sys/stat.h> | ||
30 | #include "list.h" | ||
31 | #include "tplg_local.h" | ||
32 | |||
33 | -- | ||
34 | 2.4.0 | ||
35 | |||