diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-05-31 09:44:08 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-05-31 09:44:08 +0300 |
commit | 5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185 (patch) | |
tree | 4b637d5069b7b4f2d557169777217ea165495c68 /libiberty/configure | |
parent | 90b4491842980d57a0e572167a168e04a476bca5 (diff) | |
download | gdb-5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185.zip gdb-5b4a1ff337973732ff9a5ad9b1cb84d74a7e6185.tar.gz gdb-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')
-rwxr-xr-x | libiberty/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libiberty/configure b/libiberty/configure index 8687935..ccadfaa 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -5864,6 +5864,16 @@ fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRTOULL $ac_have_decl _ACEOF +ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" +if test "x$ac_cv_have_decl_strnlen" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRNLEN $ac_have_decl +_ACEOF $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h @@ -7005,6 +7015,17 @@ cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRVERSCMP $ac_have_decl _ACEOF + ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" +if test "x$ac_cv_have_decl_strnlen" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRNLEN $ac_have_decl +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; } if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then : |