aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2015-05-22 20:53:45 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-05-22 20:53:45 +0000
commitf50f17e6707da098ce7542741f67830bc5f80fc0 (patch)
treeda3a764bef8f53ed9fa5173bc66cea4ee5d4e8f7 /libiberty/configure.ac
parentaf563d4bb754b06f828d29aa74b5b663353cec97 (diff)
downloadgcc-f50f17e6707da098ce7542741f67830bc5f80fc0.zip
gcc-f50f17e6707da098ce7542741f67830bc5f80fc0.tar.gz
gcc-f50f17e6707da098ce7542741f67830bc5f80fc0.tar.bz2
libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is not defined.
include/: * libiberty.h (asprintf): Don't declare if HAVE_DECL_ASPRINTF is not defined. libiberty/: * configure.ac: Add AC_GNU_SOURCE. * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE. * configure, config.in: Rebuild. * floatformat.c (_GNU_SOURCE): Don't define if already defined. From-SVN: r223589
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r--libiberty/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 922aa86..868be8e 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -155,6 +155,7 @@ AC_MSG_NOTICE([target_header_dir = $target_header_dir])
GCC_NO_EXECUTABLES
AC_PROG_CC
+AC_GNU_SOURCE
AC_SYS_LARGEFILE
AC_PROG_CPP_WERROR