summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-09-10 14:53:37 +0200
committerBruno Haible <bruno@clisp.org>2019-09-10 14:56:14 +0200
commite1dd304ea40e10b85aa5a1094bce630341778c15 (patch)
treeb0b90eae04244d1837146e0f4906d637bdd66f59
parent672663aca33a8fac097f114693f69f09896ea62d (diff)
downloadgnulib-e1dd304ea40e10b85aa5a1094bce630341778c15.tar.gz
gnulib-e1dd304ea40e10b85aa5a1094bce630341778c15.tar.bz2
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.
-rw-r--r--ChangeLog6
-rw-r--r--m4/wctob.m43
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3840b360ba..2ef2c89215 100644
--- 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.
diff --git a/m4/wctob.m4 b/m4/wctob.m4
index 05c1237ee0..a90682808b 100644
--- a/m4/wctob.m4
+++ b/m4/wctob.m4
@@ -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>.

Return to:

Send suggestions and report system problems to the System administrator.