From: Tim Kientzle Date: Tue, 24 Jan 2012 05:11:51 +0000 (-0500) Subject: Issue 232: Fix a missing header. X-Git-Tag: v3.0.4~2^2~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4ea41bf5fcd8eb8495bd7fb799c4117d10f8bce;p=thirdparty%2Flibarchive.git Issue 232: Fix a missing header. SVN-Revision: 4197 --- diff --git a/libarchive/archive_string_sprintf.c b/libarchive/archive_string_sprintf.c index fb752a211..3b3dd4ed3 100644 --- a/libarchive/archive_string_sprintf.c +++ b/libarchive/archive_string_sprintf.c @@ -38,7 +38,9 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_string_sprintf.c 189435 2009-03- * here. This is only used to format error messages, so doesn't * require any floating-point support or field-width handling. */ - +#ifdef HAVE_ERRNO_H +#include +#endif #include #include "archive_string.h"