mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
build: Define __USE_UNIX98 for old glibc
Otherwise PTHREAD_MUTEX_RECURSIVE isn't defined and we get an error with old glibc. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e7bf93f7e9
commit
3cf3fbebdd
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
||||||
#include "local.h"
|
#include "local.h"
|
||||||
|
|
||||||
#ifdef THREAD_SAFE_API
|
#ifdef THREAD_SAFE_API
|
||||||
|
#define __USE_UNIX98 1 /* for old glibc */
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue