meson: Set _GNU_SOURCE
authorDylan Baker <dylan@pnwbakers.com>
Mon, 9 Oct 2017 21:22:07 +0000 (14:22 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 16 Oct 2017 23:32:43 +0000 (16:32 -0700)
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>
meson.build

index 2f73215ca5248714b2f73fe3f92f7faef2532b83..e68469262bf2c0e3ff2ba6ecac9a77b5141a2876 100644 (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')