+2019-09-14 Bruno Haible <bruno@clisp.org>
+
+ Make autoconf tests work with -Werror=implicit-function-declaration.
+ * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
+ towupper() declaration.
+ * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
+ declaration.
+
2019-09-14 Bruno Haible <bruno@clisp.org>
findprog-in: Better mimic the system on native Windows.
-# 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,
#endif
#include <stdlib.h>
#include <string.h>
+#include <wctype.h>
struct tm t;
char buf[16];
int main () {
-# 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,
AC_CACHE_CHECK([whether ptsname sets errno on failure],
[gl_cv_func_ptsname_sets_errno],
[AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[#include <errno.h>
- ]], [[
- return ptsname (-1) || !errno;
- ]])],
+ [AC_LANG_PROGRAM([[
+ #include <stdlib.h>
+ #include <errno.h>
+ ]], [[
+ return ptsname (-1) || !errno;
+ ]])],
[gl_cv_func_ptsname_sets_errno=yes],
[gl_cv_func_ptsname_sets_errno=no],
[case "$host_os" in