OSDN Git Service

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 32e6dcd..e4f6521 100644 (file)
@@ -35,6 +35,7 @@
 #include "local.h"
 
 #ifdef THREAD_SAFE_API
+#define __USE_UNIX98 1 /* for old glibc */
 #include <pthread.h>
 #endif