aboutsummaryrefslogtreecommitdiff
path: root/libs/alsa-lib/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-11-19 18:52:05 -0800
committerRosen Penev <rosenp@gmail.com>2020-04-13 22:34:21 -0700
commitd6e2cb105e25ff62cf71acba891b55f273afe018 (patch)
tree115d940442d5ee315668773cc26e3a119825b9ea /libs/alsa-lib/patches
parentd917d662aedd9c133217b5c6d8c5a4f4a6bd3dea (diff)
alsa-lib: Update to 1.2.2
Added aserver application. Fixed license information. Small consistency updates. Added usleep patch. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'libs/alsa-lib/patches')
-rw-r--r--libs/alsa-lib/patches/100-link_fix.patch2
-rw-r--r--libs/alsa-lib/patches/200-usleep.patch34
2 files changed, 35 insertions, 1 deletions
diff --git a/libs/alsa-lib/patches/100-link_fix.patch b/libs/alsa-lib/patches/100-link_fix.patch
index 5d1117811..9a3258c72 100644
--- a/libs/alsa-lib/patches/100-link_fix.patch
+++ b/libs/alsa-lib/patches/100-link_fix.patch
@@ -1,6 +1,6 @@
--- a/src/Makefile.in
+++ b/src/Makefile.in
-@@ -493,7 +493,7 @@ clean-libLTLIBRARIES:
+@@ -490,7 +490,7 @@ clean-libLTLIBRARIES:
}
libasound.la: $(libasound_la_OBJECTS) $(libasound_la_DEPENDENCIES) $(EXTRA_libasound_la_DEPENDENCIES)
diff --git a/libs/alsa-lib/patches/200-usleep.patch b/libs/alsa-lib/patches/200-usleep.patch
new file mode 100644
index 000000000..86badc202
--- /dev/null
+++ b/libs/alsa-lib/patches/200-usleep.patch
@@ -0,0 +1,34 @@
+--- a/src/pcm/pcm_shm.c
++++ b/src/pcm/pcm_shm.c
+@@ -45,6 +45,14 @@
+ #include <netdb.h>
+ #include "aserver.h"
+
++#if _POSIX_C_SOURCE >= 200809L
++#define usleep(a) \
++ do { \
++ const struct timespec req = {0, a * 1000}; \
++ nanosleep(&req, NULL); \
++ } while(0)
++#endif
++
+ #ifndef PIC
+ /* entry for static linking */
+ const char *_snd_module_pcm_shm = "";
+--- a/src/ucm/ucm_local.h
++++ b/src/ucm/ucm_local.h
+@@ -53,6 +53,14 @@
+ #define SEQUENCE_ELEMENT_TYPE_CSET_TLV 6
+ #define SEQUENCE_ELEMENT_TYPE_CMPT_SEQ 7
+
++#if _POSIX_C_SOURCE >= 200809L
++#define usleep(a) \
++ do { \
++ const struct timespec req = {0, a * 1000}; \
++ nanosleep(&req, NULL); \
++ } while(0)
++#endif
++
+ struct ucm_value {
+ struct list_head list;
+ char *name;