diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-01-30 10:05:07 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2016-01-30 11:05:01 +0100 |
commit | dbf45d9759c189422d182adc4efbfeae21558f9f (patch) | |
tree | e6014ceec08a948f336cce34a1368ab7b827293b /package/alsa-lib | |
parent | 9a9cd34e93036eced518619d2947c5b7e6ee648c (diff) | |
download | buildroot-dbf45d9759c189422d182adc4efbfeae21558f9f.tar.gz buildroot-dbf45d9759c189422d182adc4efbfeae21558f9f.zip |
package/alsa-lib: fix musl-related openal build error
openal will fail to build without this patch when using pcm.h
In file included from /home/bernd/buildroot/br3/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/alsa/asoundlib.h:54:0,
from /home/bernd/buildroot/br3/output/build/openal-1.17.2/Alc/backends/alsa.c:34:
/home/bernd/buildroot/br3/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/alsa/pcm.h:1111:1: error: unknown type name ‘u_int8_t’
u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
^
It seems that this problem was not yet caught by the autobuilders.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/alsa-lib')
-rw-r--r-- | package/alsa-lib/0005-musl-pcm-h.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/alsa-lib/0005-musl-pcm-h.patch b/package/alsa-lib/0005-musl-pcm-h.patch new file mode 100644 index 0000000000..ce1528c572 --- /dev/null +++ b/package/alsa-lib/0005-musl-pcm-h.patch @@ -0,0 +1,33 @@ +Fix musl-related build errors in packages depending on alsa, in our case +this fixes openal. + +Downloaded from +http://git.alpinelinux.org/cgit/aports/tree/main/alsa-lib/alsa-lib_pcm_h.patch + +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> + +--- alsa-lib-1.0.25/include/pcm.h ++++ alsa-lib-1.0.25.patched/include/pcm.h +@@ -33,6 +33,7 @@ + extern "C" { + #endif + ++#include <stdint.h> + /** + * \defgroup PCM PCM Interface + * See the \ref pcm page for more details. +@@ -941,10 +942,10 @@ + int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */ + snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian); + ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples); +-u_int8_t snd_pcm_format_silence(snd_pcm_format_t format); +-u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format); +-u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format); +-u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format); ++uint8_t snd_pcm_format_silence(snd_pcm_format_t format); ++uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format); ++uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format); ++uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format); + int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples); + + snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes); |