mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 15:30:09 +00:00
meson: set _GNU_SOURCE on cygwin
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>
This commit is contained in:
parent
9cdd41b18a
commit
dbe36e3b17
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user