aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/archive_entry.h
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2005-09-10 22:58:06 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2005-09-10 22:58:06 +0000
commit1dd0aa0c181857157cc5e838f0f0cc8d288fba36 (patch)
tree2f58e10266a64d70146a7581d052bf09013f4457 /lib/libarchive/archive_entry.h
parentc3614b63a2080188c94a10b463cbbd04a1652b52 (diff)
Style issue: Don't include <wchar.h> where it is not actually needed.
(wchar_t is defined in stddef.h, and only two files need more than that.) Portability: Since the wchar requirements are really quite modest, it's easy to define basic replacements for wcslen, wcscmp, wcscpy, etc, for use on systems that lack <wchar.h>. In particular, this allows libarchive to be used on older OpenBSD systems.
Notes
Notes: svn path=/head/; revision=149964
Diffstat (limited to 'lib/libarchive/archive_entry.h')
-rw-r--r--lib/libarchive/archive_entry.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libarchive/archive_entry.h b/lib/libarchive/archive_entry.h
index dec8b960d8b4..8d9fdef6a53d 100644
--- a/lib/libarchive/archive_entry.h
+++ b/lib/libarchive/archive_entry.h
@@ -29,9 +29,8 @@
#ifndef ARCHIVE_ENTRY_H_INCLUDED
#define ARCHIVE_ENTRY_H_INCLUDED
+#include <stddef.h> /* for wchar_t */
#include <unistd.h>
-#include <wchar.h>
-
#ifdef __cplusplus
extern "C" {