From a48604c871e197423969059cb233428de79a9fbb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 28 Apr 2024 10:16:06 +0200 Subject: build: define _POSIX_C_SOURCE globally --- meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d11a754..8b005da 100644 --- a/meson.build +++ b/meson.build @@ -13,6 +13,8 @@ project( cc = meson.get_compiler('c') +add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c') + add_project_arguments(cc.get_supported_arguments([ '-Wno-unused-parameter', '-Wno-unused-result', -- cgit v1.2.3