snprintf is not guaranteed to work without a declaration.
* lib/strerror_r.c: Avoid compiler warning about snprintf.
Signed-off-by: Eric Blake <eblake@redhat.com>
2011-05-24 Eric Blake <eblake@redhat.com>
+ strerror_r: fix missing header
+ * lib/strerror_r.c: Avoid compiler warning about snprintf.
+
strerror_r: fix AIX test failures
* lib/strerror_r.c (strerror_r): Convert silent truncation to
ERANGE failure.
#include <string.h>
#include <errno.h>
+#include <stdio.h>
#if GNULIB_defined_ESOCK /* native Windows platforms */
# if HAVE_WINSOCK2_H