build: enable POSIX.1-2008

Turns on functions like strdup.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2022-04-10 11:28:07 +02:00
parent 882d34cebb
commit c22e47162e

View file

@ -12,6 +12,8 @@ project(
cc = meson.get_compiler('c')
add_project_arguments(['-D_POSIX_C_SOURCE=200809L'], language: 'c')
add_project_arguments(cc.get_supported_arguments([
'-Wundef',
'-Wmissing-prototypes',