summaryrefslogtreecommitdiffstats
path: root/package/alsa-lib/0001-add-missing-include.patch
blob: ac7dfa95c577635f91b978ffe918db692a085173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Subject: [PATCH] topology: Add missing include sys/stat.h

Necessary for proper definitions of S_IRUSR & co.  Otherwise it
results in compile errors with old glibc:
  parser.c: In function 'snd_tplg_build_file':
  parser.c:262: error: 'S_IRUSR' undeclared (first use in this function)
  parser.c:262: error: (Each undeclared identifier is reported only once
  parser.c:262: error: for each function it appears in.)

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
Status: upstream

diff --git a/src/topology/parser.c b/src/topology/parser.c
index 80a0ae0..18bb9c7 100644
--- a/src/topology/parser.c
+++ b/src/topology/parser.c
@@ -16,6 +16,7 @@
            Liam Girdwood <liam.r.girdwood@linux.intel.com>
 */
 
+#include <sys/stat.h>
 #include "list.h"
 #include "tplg_local.h"
 
-- 
1.7.11.7

OpenPOWER on IntegriCloud