diff options
author | Eric Blake <eblake@redhat.com> | 2011-05-24 14:30:38 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-05-24 14:30:38 -0600 |
commit | 4131aa89009495ba2af5c2e0b3c63f7e5d83281f (patch) | |
tree | 6857f892020c523610c56da7ee155f5abbac204b /lib/strerror_r.c | |
parent | 8ea7a67217abecef3dce757f11f719e1c205f7a8 (diff) | |
download | gnulib-4131aa89009495ba2af5c2e0b3c63f7e5d83281f.tar.gz |
strerror_r: fix missing header
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>
Diffstat (limited to 'lib/strerror_r.c')
-rw-r--r-- | lib/strerror_r.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/strerror_r.c b/lib/strerror_r.c index 034c22e93f..494b1f04b5 100644 --- a/lib/strerror_r.c +++ b/lib/strerror_r.c @@ -26,6 +26,7 @@ #include <string.h> #include <errno.h> +#include <stdio.h> #if GNULIB_defined_ESOCK /* native Windows platforms */ # if HAVE_WINSOCK2_H |