mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
build: enable POSIX.1-2008
Turns on functions like strdup. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
882d34cebb
commit
c22e47162e
1 changed files with 2 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue