meson: set _GNU_SOURCE on cygwin
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 23 Nov 2017 13:42:00 +0000 (13:42 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 30 Nov 2017 15:09:21 +0000 (15:09 +0000)
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
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