meson: set _GNU_SOURCE on cygwin
[mesa.git] / meson.build
index a7a51bccb33b4dce1155a21d4d5c38c3cc6a3b57..7a7793b9961c0788c7f0c1fec9dd516957208140 100644 (file)
@@ -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