From: Vinson Lee Date: Sun, 1 Mar 2015 08:41:48 +0000 (-0800) Subject: scons: Define _DEFAULT_SOURCE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b77576edc1a8010e5457f82b41c335ae27cb066b;p=mesa.git scons: Define _DEFAULT_SOURCE. Fix GCC cpp warnings with glibc >= 2.19. /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ Signed-off-by: Vinson Lee Acked-by: Emil Velikov --- diff --git a/scons/gallium.py b/scons/gallium.py index 711aa3b1c7b..c34468fb673 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -283,6 +283,7 @@ def generate(env): '_SVID_SOURCE', '_BSD_SOURCE', '_GNU_SOURCE', + '_DEFAULT_SOURCE', 'HAVE_PTHREAD', 'HAVE_POSIX_MEMALIGN', ]