Based on patch by Florian Weimer <fweimer@redhat.com>.
* m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
+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.
-# 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,
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>.