From: Jon Turney Date: Thu, 23 Nov 2017 13:42:00 +0000 (+0000) Subject: meson: set _GNU_SOURCE on cygwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbe36e3b1788a333309c5b919a40bceaf0df3e74;p=mesa.git meson: set _GNU_SOURCE on cygwin Signed-off-by: Jon Turney Reviewed-by: Dylan Baker Reviewed-by: Eric Engestrom --- 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