From 8dd058b03d70a28ec6cb104644308647123241d4 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sun, 15 Jun 2008 05:11:08 +0000 Subject: [PATCH] Portability: wchar_t is defined in stdlib.h on some systems. --- lib/libarchive/archive_string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libarchive/archive_string.h b/lib/libarchive/archive_string.h index 84f3669fbebe..819be757fa59 100644 --- a/lib/libarchive/archive_string.h +++ b/lib/libarchive/archive_string.h @@ -30,6 +30,9 @@ #define ARCHIVE_STRING_H_INCLUDED #include +#ifdef HAVE_STDLIB_H +#include /* required for wchar_t on some systems */ +#endif #ifdef HAVE_STRING_H #include #endif