mirror of
https://github.com/rui314/mold.git
synced 2024-09-11 21:17:28 +03:00
fix build with libc++
Otherwise fails with: /usr/include/c++/v1/__threading_support:370:43: error: use of undeclared identifier 'PTHREAD_MUTEX_RECURSIVE' 200809L triggers __USE_XOPEN2K8 to be defined which enables pthread.h to define the missing identifier. Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
parent
3322ff6e7c
commit
4fc27d2195
@ -2,7 +2,7 @@
|
||||
// In this file, we explicitly undefine _GNU_SOURCE to always
|
||||
// use the POSIX version.
|
||||
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#undef _GNU_SOURCE
|
||||
|
||||
#include <cstring>
|
||||
|
Loading…
Reference in New Issue
Block a user