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.
pull/240/head
Dylan Baker 2022-07-29 10:18:59 -07:00
parent 918b660992
commit 71974d8c54
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ project('pkgconf', 'c',
cc = meson.get_compiler('c')
add_project_arguments(
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
language : 'c',
)
cdata = configuration_data()