[Mesa-dev] [PATCH 4/7] meson: set _GNU_SOURCE on cygwin
Jon Turney
jon.turney at dronecode.org.uk
Mon Nov 27 13:58:31 UTC 2017
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index d0618f97344..cf6e028746a 100644
--- a/meson.build
+++ b/meson.build
@@ -467,7 +467,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.15.0
More information about the mesa-dev
mailing list