summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-09-14 19:41:46 +0200
committerBruno Haible <bruno@clisp.org>2019-09-14 19:41:46 +0200
commit2d548920742b7735c1d4722c87f59c1df3b06556 (patch)
treed4e33bc298155653c6fc2e50fd05155be78b70b1
parent43fcc2ac704d94640abbfccc53b247243c33d6e0 (diff)
downloadgnulib-2d548920742b7735c1d4722c87f59c1df3b06556.tar.gz
gnulib-2d548920742b7735c1d4722c87f59c1df3b06556.tar.bz2
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.
-rw-r--r--ChangeLog8
-rw-r--r--m4/locale-tr.m43
-rw-r--r--m4/ptsname.m412
3 files changed, 17 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index d62a962847..5f4c13e07a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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.
Reported by Paul Smith <psmith@gnu.org>.
* lib/findprog-in.c (find_in_given_path): On native Windows, don't try
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 <stdlib.h>
#include <string.h>
+#include <wctype.h>
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 <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

Return to:

Send suggestions and report system problems to the System administrator.