Mesa (master): scons: Define _DEFAULT_SOURCE.

Vinson Lee vlee at kemper.freedesktop.org
Wed Mar 4 01:30:10 UTC 2015


Module: Mesa
Branch: master
Commit: b77576edc1a8010e5457f82b41c335ae27cb066b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b77576edc1a8010e5457f82b41c335ae27cb066b

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sun Mar  1 00:41:48 2015 -0800

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 at freedesktop.org>
Acked-by: Emil Velikov <emil.l.velikov at gmail.com>

---

 scons/gallium.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scons/gallium.py b/scons/gallium.py
index 711aa3b..c34468f 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',
         ]




More information about the mesa-commit mailing list