From: Bruno Haible Date: Sat, 14 Sep 2019 17:41:46 +0000 (+0200) Subject: Make autoconf tests work with -Werror=implicit-function-declaration. X-Git-Tag: v1.0~4662 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2d548920742b7735c1d4722c87f59c1df3b06556;p=gnulib.git Make autoconf tests work with -Werror=implicit-function-declaration. * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include , for towupper() declaration. * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include , for ptsname() declaration. --- diff --git a/ChangeLog b/ChangeLog index d62a962847..5f4c13e07a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-09-14 Bruno Haible + + Make autoconf tests work with -Werror=implicit-function-declaration. + * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include , for + towupper() declaration. + * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include , for ptsname() + declaration. + 2019-09-14 Bruno Haible findprog-in: Better mimic the system on native Windows. diff --git a/m4/locale-tr.m4 b/m4/locale-tr.m4 index aeb2419792..4c413f0206 100644 --- a/m4/locale-tr.m4 +++ b/m4/locale-tr.m4 @@ -1,4 +1,4 @@ -# locale-tr.m4 serial 11 +# locale-tr.m4 serial 12 dnl Copyright (C) 2003, 2005-2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -21,6 +21,7 @@ changequote(,)dnl #endif #include #include +#include struct tm t; char buf[16]; int main () { diff --git a/m4/ptsname.m4 b/m4/ptsname.m4 index 5033d90cfe..04bfd3ba7a 100644 --- a/m4/ptsname.m4 +++ b/m4/ptsname.m4 @@ -1,4 +1,4 @@ -# ptsname.m4 serial 7 +# ptsname.m4 serial 8 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -19,10 +19,12 @@ AC_DEFUN([gl_FUNC_PTSNAME], AC_CACHE_CHECK([whether ptsname sets errno on failure], [gl_cv_func_ptsname_sets_errno], [AC_RUN_IFELSE( - [AC_LANG_PROGRAM([[#include - ]], [[ - return ptsname (-1) || !errno; - ]])], + [AC_LANG_PROGRAM([[ + #include + #include + ]], [[ + return ptsname (-1) || !errno; + ]])], [gl_cv_func_ptsname_sets_errno=yes], [gl_cv_func_ptsname_sets_errno=no], [case "$host_os" in