From dbe36e3b1788a333309c5b919a40bceaf0df3e74 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 23 Nov 2017 13:42:00 +0000 Subject: [PATCH] meson: set _GNU_SOURCE on cygwin Signed-off-by: Jon Turney Reviewed-by: Dylan Baker Reviewed-by: Eric Engestrom --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a7a51bccb33..7a7793b9961 100644 --- a/meson.build +++ b/meson.build @@ -481,7 +481,7 @@ if cc.compiles('int foo(void) { return 0; } int bar(void) __attribute__((alias(" endif # TODO: this is very incomplete -if host_machine.system() == 'linux' +if ['linux', 'cygwin'].contains(host_machine.system()) pre_args += '-D_GNU_SOURCE' endif -- 2.30.2