]> Savannah Git Hosting - gnulib.git/commitdiff
wctob: Fix autoconf test.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Sep 2019 12:53:37 +0000 (14:53 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Sep 2019 12:56:14 +0000 (14:56 +0200)
Based on patch by Florian Weimer <fweimer@redhat.com>.

* m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.

ChangeLog
m4/wctob.m4

index 3840b360ba393b5cb7e10d55e6c3554b4cb8b5e1..2ef2c89215a7ad7d1dd60fbd663f617e410af06e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-09-10  Bruno Haible  <bruno@clisp.org>
+
+       wctob: Fix autoconf test.
+       Based on patch by Florian Weimer <fweimer@redhat.com>.
+       * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
+
 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
 
        xhash: provide hash_xinitialize.
index 05c1237ee0a4c607b573324e565431c5c16efe26..a90682808bec54cedd62befae6c79aad02c1c665 100644 (file)
@@ -1,4 +1,4 @@
-# wctob.m4 serial 11
+# wctob.m4 serial 12
 dnl Copyright (C) 2008-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,
@@ -74,6 +74,7 @@ int main ()
           AC_RUN_IFELSE(
             [AC_LANG_SOURCE([[
 #include <locale.h>
+#include <stdlib.h>
 #include <string.h>
 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
    <wchar.h>.