diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-25 18:59:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-25 19:00:41 +0200 |
commit | 33e8ad1a6b18d363fd42052bcbcdc82e0d45e471 (patch) | |
tree | 54ec391b7b447c535df6f7e2fb042fca9efd1ea2 /package/alsa-lib/patches/patch-src_conf_c | |
parent | 65d1906183283a885b61bb87c023938f29145fe0 (diff) |
update to latest stable version
Diffstat (limited to 'package/alsa-lib/patches/patch-src_conf_c')
-rw-r--r-- | package/alsa-lib/patches/patch-src_conf_c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/package/alsa-lib/patches/patch-src_conf_c b/package/alsa-lib/patches/patch-src_conf_c deleted file mode 100644 index f3c1e70bd..000000000 --- a/package/alsa-lib/patches/patch-src_conf_c +++ /dev/null @@ -1,35 +0,0 @@ -from alpinelinux - http://git.alpinelinux.org/cgit/aports/tree/main/alsa-lib/alsa-lib-portable-mutex.patch ---- alsa-lib-1.0.27.2.orig/src/conf.c 2013-07-08 14:31:36.000000000 +0200 -+++ alsa-lib-1.0.27.2/src/conf.c 2013-10-02 14:32:15.000000000 +0200 -@@ -427,8 +427,8 @@ beginning:</P> - #ifndef DOC_HIDDEN - - #ifdef HAVE_LIBPTHREAD --static pthread_mutex_t snd_config_update_mutex = -- PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; -+static pthread_mutex_t snd_config_update_mutex; -+static pthread_once_t snd_config_update_mutex_once = PTHREAD_ONCE_INIT; - #endif - - struct _snd_config { -@@ -472,8 +472,19 @@ typedef struct { - - #ifdef HAVE_LIBPTHREAD - -+static void snd_config_init_mutex(void) -+{ -+ pthread_mutexattr_t attr; -+ -+ pthread_mutexattr_init(&attr); -+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); -+ pthread_mutex_init(&snd_config_update_mutex, &attr); -+ pthread_mutexattr_destroy(&attr); -+} -+ - static inline void snd_config_lock(void) - { -+ pthread_once(&snd_config_update_mutex_once, snd_config_init_mutex); - pthread_mutex_lock(&snd_config_update_mutex); - } - |