[Mesa-dev] [PATCH] scons: Define _DEFAULT_SOURCE.
Vinson Lee
vlee at freedesktop.org
Sun Mar 1 00:49:25 PST 2015
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>
---
scons/gallium.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scons/gallium.py b/scons/gallium.py
index 5195508..2908257 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',
]
--
2.3.1
More information about the mesa-dev
mailing list