OSDN Git Service

scons: Define _DEFAULT_SOURCE.
authorVinson Lee <vlee@freedesktop.org>
Sun, 1 Mar 2015 08:41:48 +0000 (00:41 -0800)
committerVinson Lee <vlee@freedesktop.org>
Wed, 4 Mar 2015 01:23:48 +0000 (17:23 -0800)
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>
scons/gallium.py

index 711aa3b..c34468f 100755 (executable)
@@ -283,6 +283,7 @@ def generate(env):
             '_SVID_SOURCE',
             '_BSD_SOURCE',
             '_GNU_SOURCE',
+            '_DEFAULT_SOURCE',
             'HAVE_PTHREAD',
             'HAVE_POSIX_MEMALIGN',
         ]