]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue 232: Fix a missing header.
authorTim Kientzle <kientzle@gmail.com>
Tue, 24 Jan 2012 05:11:51 +0000 (00:11 -0500)
committerTim Kientzle <kientzle@gmail.com>
Tue, 24 Jan 2012 05:11:51 +0000 (00:11 -0500)
SVN-Revision: 4197

libarchive/archive_string_sprintf.c

index fb752a211a14fbcd958121a3d514f9bfaf92ec8f..3b3dd4ed3b0bd52a5e6fa4fc63f2011a796b91eb 100644 (file)
@@ -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 <errno.h>
+#endif
 #include <stdio.h>
 
 #include "archive_string.h"