blob: 0ead0cdafe56496ddc80043539b460890363199f [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 3f1dba9a821b53b42001605f9a126a958804884f Mon Sep 17 00:00:00 2001
2From: Takashi Iwai <tiwai@suse.de>
3Date: Mon, 9 Nov 2015 13:37:26 +0100
4Subject: [PATCH] topology: Add missing include sys/stat.h
5
6Necessary for proper definitions of S_IRUSR & co. Otherwise it
7results 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
13Upstream-Status: Backport
14
15Signed-off-by: Takashi Iwai <tiwai@suse.de>
16Signed-off-by: Maxin B. John <maxin.john@intel.com>
17---
18 src/topology/parser.c | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/src/topology/parser.c b/src/topology/parser.c
22index 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--
342.4.0
35