From c22e47162e4e3fa622c37266951d6485dc6e3361 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 10 Apr 2022 11:28:07 +0200 Subject: [PATCH] build: enable POSIX.1-2008 Turns on functions like strdup. Signed-off-by: Simon Ser --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index a5550b2..d891e67 100644 --- a/meson.build +++ b/meson.build @@ -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',