From 7409a1894c2e9d5291760703da1ce6c95dd7b815 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 30 Oct 2022 08:20:02 +0000 Subject: build: drop -D_POSIX_C_SOURCE on non-Linux after 6b611d36acab Non-GNU systems enable extensions (XSI, BSD, GNU) by default. --- meson.build | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 99bfea5..bbe1bc8 100644 --- a/meson.build +++ b/meson.build @@ -89,15 +89,12 @@ test_args = [] optional_arguments = [] optional_link_arguments = [] -if host_machine.system() == 'linux' +if host_machine.system() in ['linux', 'gnu'] test_args += '-D_GNU_SOURCE' add_project_arguments('-D_GNU_SOURCE', language: 'c') elif host_machine.system() in ['darwin', 'ios', 'tvos'] test_args += '-D_DARWIN_C_SOURCE' add_project_arguments('-D_DARWIN_C_SOURCE', language: 'c') -else - test_args += '-D_POSIX_C_SOURCE=200112L' - add_project_arguments('-D_POSIX_C_SOURCE=200112L', language: 'c') endif if host_machine.system() == 'windows' -- cgit v1.2.3