]> git.alsa-project.org Git - alsa-lib.git/commitdiff
build: Define __USE_UNIX98 for old glibc
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 May 2017 14:17:57 +0000 (16:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 16 May 2017 14:17:57 +0000 (16:17 +0200)
Otherwise PTHREAD_MUTEX_RECURSIVE isn't defined and we get an error
with old glibc.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_local.h

index 32e6dcdf6fcdeef18c2075895f9ad4b9a2b4eb5f..e4f652187c492dcd647d48a0682cb0eb30f13766 100644 (file)
@@ -35,6 +35,7 @@
 #include "local.h"
 
 #ifdef THREAD_SAFE_API
+#define __USE_UNIX98 1 /* for old glibc */
 #include <pthread.h>
 #endif