]> Savannah Git Hosting - gnulib.git/commitdiff
Make autoconf tests work with -Werror=implicit-function-declaration.
authorBruno Haible <bruno@clisp.org>
Sat, 14 Sep 2019 17:41:46 +0000 (19:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 14 Sep 2019 17:41:46 +0000 (19:41 +0200)
* 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.

ChangeLog
m4/locale-tr.m4
m4/ptsname.m4

index d62a962847e9076ede5683697e0688684e1e7a2c..5f4c13e07a393a6c91419246aa3aa965806f1424 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
index aeb2419792a368b45f6ff46ce0c7877f9afe8b71..4c413f020617a0c019999ea599b6613efa1c020b 100644 (file)
@@ -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 () {
index 5033d90cfed3d2217d0b2263ba7830978b9c711e..04bfd3ba7acd139c80d785549a5b3fbe57d7571a 100644 (file)
@@ -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