diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-27 14:04:50 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-27 14:22:24 +0000 |
commit | 392988ed3d9401f39ab7fed37a8d76de993eda8b (patch) | |
tree | 3808e3213159e018bebda1b23f66a08152fbb3e6 /main/alsa-lib/fix-headers.patch | |
parent | 8c1eeed3e8232fde1d7f46153adc5612d1701e35 (diff) | |
download | aports-392988ed3d9401f39ab7fed37a8d76de993eda8b.tar.bz2 aports-392988ed3d9401f39ab7fed37a8d76de993eda8b.tar.xz |
main/alsa-lib: fix musl build
fix various idiotic constructs. patches are mostly from sabotage,
but some I wrote myself too.
Diffstat (limited to 'main/alsa-lib/fix-headers.patch')
-rw-r--r-- | main/alsa-lib/fix-headers.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/alsa-lib/fix-headers.patch b/main/alsa-lib/fix-headers.patch new file mode 100644 index 0000000000..fbb28ee513 --- /dev/null +++ b/main/alsa-lib/fix-headers.patch @@ -0,0 +1,45 @@ +Common subdirectories: alsa-lib-1.0.27.2.orig/include/alsa and alsa-lib-1.0.27.2/include/alsa +--- alsa-lib-1.0.27.2.orig/include/global.h ++++ alsa-lib-1.0.27.2/include/global.h +@@ -133,18 +133,6 @@ + + int snd_user_file(const char *file, char **result); + +-#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) +-struct timeval { +- time_t tv_sec; /* seconds */ +- long tv_usec; /* microseconds */ +-}; +- +-struct timespec { +- time_t tv_sec; /* seconds */ +- long tv_nsec; /* nanoseconds */ +-}; +-#endif +- + /** Timestamp */ + typedef struct timeval snd_timestamp_t; + /** Hi-res timestamp */ +--- alsa-lib-1.0.27.2.orig/include/local.h ++++ alsa-lib-1.0.27.2/include/local.h +@@ -30,7 +30,7 @@ + #include <assert.h> + #include <endian.h> + #include <stdarg.h> +-#include <sys/poll.h> ++#include <poll.h> + #include <errno.h> + #include <linux/ioctl.h> + +Common subdirectories: alsa-lib-1.0.27.2.orig/include/sound and alsa-lib-1.0.27.2/include/sound +--- alsa-lib-1.0.27.2/src/shmarea.c.orig ++++ alsa-lib-1.0.27.2/src/shmarea.c +@@ -19,7 +19,7 @@ + */ + + #include <stdio.h> +-#include <malloc.h> ++#include <stdlib.h> + #include <string.h> + #include <errno.h> + #include <sys/poll.h> |