meson: Set _GNU_SOURCE

When we start adding non-free software platforms support we'll need to
guard this, but for now it should be fine as is.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker
2017-10-09 14:22:07 -07:00
parent e21e0a6a70
commit 601bd7296f

View File

@@ -31,6 +31,7 @@ pre_args = [
'-DVERSION="@0@"'.format(meson.project_version()),
'-DPACKAGE_VERSION=VERSION',
'-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"',
'-D_GNU_SOURCE',
]
with_vulkan_icd_dir = get_option('vulkan-icd-dir')