build: specify -D_DARWIN_C_SOURCE on darwin

Needed for access to things like RTLD_NEXT
This commit is contained in:
Christian Hergert
2020-11-16 13:58:42 -08:00
parent 9e78f7f877
commit c82b0a1677

View File

@ -92,6 +92,9 @@ global_c_args = [
'-D_GNU_SOURCE',
'-D_POSIX_C_SOURCE=200809L',
]
if host_machine.system() == 'darwin'
global_c_args += ['-D_DARWIN_C_SOURCE']
endif
test_c_args = [
'-Wcast-align',
'-Wdeclaration-after-statement',