meson: use _BSD_SOURCE for checking for symbols
parent
ac964d13f3
commit
cc4ccc1429
|
@ -16,7 +16,7 @@ check_functions = [
|
|||
]
|
||||
|
||||
foreach f : check_functions
|
||||
if cc.has_function(f.get(1), prefix : '#include <' + f.get(2) + '>') and cc.has_header_symbol(f.get(2), f.get(1))
|
||||
if cc.has_function(f.get(1), prefix : '#define _BSD_SOURCE\n#include <' + f.get(2) + '>') and cc.has_header_symbol(f.get(2), f.get(1), prefix : '#define _BSD_SOURCE')
|
||||
cdata.set(f.get(0), 1)
|
||||
endif
|
||||
endforeach
|
||||
|
|
Loading…
Reference in New Issue