mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
build: specify -D_DARWIN_C_SOURCE on darwin
Needed for access to things like RTLD_NEXT
This commit is contained in:
@ -92,6 +92,9 @@ global_c_args = [
|
|||||||
'-D_GNU_SOURCE',
|
'-D_GNU_SOURCE',
|
||||||
'-D_POSIX_C_SOURCE=200809L',
|
'-D_POSIX_C_SOURCE=200809L',
|
||||||
]
|
]
|
||||||
|
if host_machine.system() == 'darwin'
|
||||||
|
global_c_args += ['-D_DARWIN_C_SOURCE']
|
||||||
|
endif
|
||||||
test_c_args = [
|
test_c_args = [
|
||||||
'-Wcast-align',
|
'-Wcast-align',
|
||||||
'-Wdeclaration-after-statement',
|
'-Wdeclaration-after-statement',
|
||||||
|
|||||||
Reference in New Issue
Block a user