summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2015-03-01 00:41:48 -0800
committerVinson Lee <vlee@freedesktop.org>2015-03-03 17:23:48 -0800
commitb77576edc1a8010e5457f82b41c335ae27cb066b (patch)
tree34e0bd2ecbddb35f6a1ebe03d7ee38910ee9c2c3
parente43729943e67972e547a19123fb3afca6b77202b (diff)
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 <vlee@freedesktop.org> Acked-by: Emil Velikov <emil.l.velikov@gmail.com>
-rwxr-xr-xscons/gallium.py1
1 files changed, 1 insertions, 0 deletions
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',
]