Mesa (master): meson: define _GNU_SOURCE on FreeBSD
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 29 13:02:30 UTC 2019
Module: Mesa
Branch: master
Commit: b4f508ab5990118ea0b9214d0933e0799c36d1f7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4f508ab5990118ea0b9214d0933e0799c36d1f7
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Sat Oct 26 22:43:50 2019 +0100
meson: define _GNU_SOURCE on FreeBSD
_mesa_strtod() needs this to use strtod_l(), which behaves correctly
wrt `,` vs `.` decimal separator.
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2008
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 7eed5319564..898d025f066 100644
--- a/meson.build
+++ b/meson.build
@@ -884,7 +884,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
endif
# TODO: this is very incomplete
-if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
+if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd'].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