From dd147bdacac5416676cb05302a69c8e0d493558b Mon Sep 17 00:00:00 2001 From: Masamichi Hosoda Date: Sun, 25 Sep 2016 02:12:26 +0900 Subject: [PATCH v2] Fix g++ C++11 option `-std=c++11` disables "default" definitions. So some definitions cannot be used. This patch define _BSD_SOURCE (deprecated since glibc 2.20) and _DEFAULT_SOURCE (since glibc 2.19) for enabling "default" definitions. bug 97915 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9ce36e1..f99153f 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,7 @@ AC_ARG_ENABLE(build-type, enable_build_type=no) if test "x$GCC" = "xyes"; then - CXXFLAGS="-std=c++11 $CXXFLAGS" + CXXFLAGS="-std=c++11 -D_BSD_SOURCE -D_DEFAULT_SOURCE $CXXFLAGS" case "$enable_build_type" in relwithdebinfo) CFLAGS="-O2 -g $CFLAGS" -- 2.8.3