]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
FreeBSD 4.11 doesn't define wchar_t in <wchar.h>, so use <stdlib.h>
authorTim Kientzle <kientzle@gmail.com>
Sat, 7 Jun 2008 18:18:58 +0000 (14:18 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 7 Jun 2008 18:18:58 +0000 (14:18 -0400)
Thanks to: Jeremy C. Reed

SVN-Revision: 108

libarchive/archive_string.h

index 186e3b8feb04d5989cb72a6e77554237c41274a2..8b8f48e45189471c190acdc464e6fdeba387060b 100644 (file)
@@ -30,6 +30,9 @@
 #define        ARCHIVE_STRING_H_INCLUDED
 
 #include <stdarg.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>  /* required for wchar_t on some systems */
+#endif
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif