From: Eric Blake Date: Tue, 24 May 2011 20:30:38 +0000 (-0600) Subject: strerror_r: fix missing header X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4131aa89009495ba2af5c2e0b3c63f7e5d83281f;p=pspp 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 --- diff --git a/ChangeLog b/ChangeLog index 2f31f7d4b8..3dc7091aff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-05-24 Eric Blake + 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. 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 #include +#include #if GNULIB_defined_ESOCK /* native Windows platforms */ # if HAVE_WINSOCK2_H