forked from ariadne/pkgconf
meson: Add _BSD_SOURCE and _DEFAULT_SOURCE
To avoid warnings about string functions like strdup which are otherwise undefined, but succeed at linking anyway when the C standard is c99.bsdstubs-errno
parent
918b660992
commit
71974d8c54
|
@ -6,6 +6,11 @@ project('pkgconf', 'c',
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
|
add_project_arguments(
|
||||||
|
'-D_BSD_SOURCE',
|
||||||
|
'-D_DEFAULT_SOURCE',
|
||||||
|
language : 'c',
|
||||||
|
)
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue