aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-05-31 09:44:08 +0300
committerEli Zaretskii <eliz@gnu.org>2017-05-31 09:44:08 +0300
commit5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185 (patch)
tree4b637d5069b7b4f2d557169777217ea165495c68 /libiberty/configure.ac
parent90b4491842980d57a0e572167a168e04a476bca5 (diff)
downloadbinutils-5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185.zip
binutils-5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185.tar.gz
binutils-5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185.tar.bz2
Avoid compilation warning on MinGW in xstrndup
libiberty/ChangeLog: 2017-05-31 DJ Delorie <dj@redhat.com> * configure.ac (strnlen): Add to AC_CHECK_DECLS. * configure: Likewise. * config.in: Add HACE_DECL_STRNLEN.
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r--libiberty/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 1aa0c7c..6917cfa 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -416,7 +416,7 @@ if test "x" = "y"; then
table times tmpnam \
vasprintf vfprintf vprintf vsprintf \
wait3 wait4 waitpid)
- AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf, strtol, strtoul, strtoll, strtoull])
+ AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf, strtol, strtoul, strtoll, strtoull, strnlen])
AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.])
AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.])
AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.])
@@ -689,6 +689,7 @@ if test -z "${setobjs}"; then
AC_CHECK_DECLS([calloc, getenv, getopt, malloc, realloc, sbrk])
AC_CHECK_DECLS([strtol, strtoul, strtoll, strtoull])
AC_CHECK_DECLS([strverscmp])
+ AC_CHECK_DECLS([strnlen])
libiberty_NEED_DECLARATION(canonicalize_file_name)
fi