mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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_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',
|
||||
|
||||
Reference in New Issue
Block a user