[alsa-devel] [PATCH alsa-lib 1/2] build: Define __USE_UNIX98 for old glibc

Takashi Iwai tiwai at suse.de
Tue May 16 16:28:18 CEST 2017


Otherwise PTHREAD_MUTEX_RECURSIVE isn't defined and we get an error
with old glibc.

Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
 src/pcm/pcm_local.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pcm/pcm_local.h b/src/pcm/pcm_local.h
index 32e6dcdf6fcd..e4f652187c49 100644
--- a/src/pcm/pcm_local.h
+++ b/src/pcm/pcm_local.h
@@ -35,6 +35,7 @@
 #include "local.h"
 
 #ifdef THREAD_SAFE_API
+#define __USE_UNIX98 1	/* for old glibc */
 #include <pthread.h>
 #endif
 
-- 
2.13.0



More information about the Alsa-devel mailing list