Module: Mesa
Branch: master
Commit: dbe36e3b1788a333309c5b919a40bceaf0df3e74
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbe36e3b1788a333309c5b919a40bceaf0df3e74

Author: Jon Turney <[email protected]>
Date:   Thu Nov 23 13:42:00 2017 +0000

meson: set _GNU_SOURCE on cygwin

Signed-off-by: Jon Turney <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>

---

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index a7a51bccb3..7a7793b996 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
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to