summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-09-18 10:55:15 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-09-18 10:55:15 +0200
commit2abdcf95d521e09297804c30c7a1efda9545a579 (patch)
tree5d60208107a0122c9c445d4c6a0f4812e0546ffd
parent24bcf9338f60430dbb37c0392d2363aedf890fe8 (diff)
fix musl compile, from sab0tage
-rw-r--r--package/alsa-utils/Makefile5
-rw-r--r--package/alsa-utils/patches/patch-alsaloop_pcmjob_c11
2 files changed, 14 insertions, 2 deletions
diff --git a/package/alsa-utils/Makefile b/package/alsa-utils/Makefile
index 3453b4b7c..8f9f1b3d6 100644
--- a/package/alsa-utils/Makefile
+++ b/package/alsa-utils/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= alsa-utils
-PKG_VERSION:= 1.0.26
+PKG_VERSION:= 1.0.27.2
PKG_RELEASE:= 1
-PKG_MD5SUM:= 4dcf1017fafc91603af96705c073eca9
+PKG_MD5SUM:= b65e9a04181bd7c9db7667a4566f8dc3
PKG_DESCR:= ALSA mixer utility
PKG_SECTION:= multimedia
PKG_DEPENDS:= alsa-lib libpthread
@@ -25,6 +25,7 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,ALSA_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
CONFIGURE_ARGS+= --disable-xmlto
ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
CONFIGURE_ARGS+= --enable-alsamixer
diff --git a/package/alsa-utils/patches/patch-alsaloop_pcmjob_c b/package/alsa-utils/patches/patch-alsaloop_pcmjob_c
new file mode 100644
index 000000000..3c39d8a0c
--- /dev/null
+++ b/package/alsa-utils/patches/patch-alsaloop_pcmjob_c
@@ -0,0 +1,11 @@
+--- alsa-utils-1.0.27.2.orig/alsaloop/pcmjob.c 2013-07-09 17:28:37.000000000 +0200
++++ alsa-utils-1.0.27.2/alsaloop/pcmjob.c 2013-09-18 10:46:36.000000000 +0200
+@@ -63,7 +63,7 @@ static const char *src_types[] = {
+ #endif
+
+ static pthread_mutex_t pcm_open_mutex =
+- PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
++ {{{1,0,0,0,0,0,0,0,0,0}}};
+
+ static inline void pcm_open_lock(void)
+ {