Mesa (master): meson: Add _GNU_SOURCE for Haiku to activate non-posix functions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 03:39:42 UTC 2021


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

Author: Alexander von Gluck IV <kallisti5 at unixzen.com>
Date:   Tue Dec 29 18:46:45 2020 -0600

meson: Add _GNU_SOURCE for Haiku to activate non-posix functions

Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

---

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

diff --git a/meson.build b/meson.build
index 6193357b186..23380319cc5 100644
--- a/meson.build
+++ b/meson.build
@@ -970,7 +970,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
 endif
 
 # TODO: this is very incomplete
-if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd'].contains(host_machine.system())
+if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku'].contains(host_machine.system())
   pre_args += '-D_GNU_SOURCE'
 elif host_machine.system() == 'sunos'
   pre_args += '-D__EXTENSIONS__'



More information about the mesa-commit mailing list