alsa-lib: fix uClibc builds 5493/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 23 Jan 2018 20:54:07 +0000 (21:54 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 27 Jan 2018 10:49:02 +0000 (11:49 +0100)
commitdc7f2ccad2fda7b6c08d80ace1009ce601722f51
tree61c4a60e7be2732f506dfc06934b8837cee681cc
parent127daaef07c4fb0e95b79d655321de31d316c50f
alsa-lib: fix uClibc builds

Currently alsa-lib fails to build on uClibc:

parser.c: In function 'snd_tplg_build_file':
parser.c:262:35: error: 'S_IRUSR' undeclared (first use in this function)
   open(outfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
                                   ^
parser.c:262:35: note: each undeclared identifier is reported only once for each function it appears in
parser.c:262:45: error: 'S_IWUSR' undeclared (first use in this function)
   open(outfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
                                             ^
parser.c: In function 'snd_tplg_build':
parser.c:330:35: error: 'S_IRUSR' undeclared (first use in this function)
   open(outfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
                                   ^
parser.c:330:45: error: 'S_IWUSR' undeclared (first use in this function)
   open(outfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
                                             ^
Makefile:390: recipe for target 'parser.lo' failed

Fix this by adding an upstream fix as a backport.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/alsa-lib/Makefile
libs/alsa-lib/patches/006-properly-define-S_IRUSR.patch [new file with mode: 0644]