From: Tim Kientzle Date: Wed, 12 Aug 2009 01:45:49 +0000 (-0400) Subject: Encourage people not to use libarchive internal headers. X-Git-Tag: v2.8.0~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eda49ae240e64721cb37c909562e2ca9a94cf73;p=thirdparty%2Flibarchive.git Encourage people not to use libarchive internal headers. SVN-Revision: 1363 --- diff --git a/libarchive/archive_crc32.h b/libarchive/archive_crc32.h index 60570120a..b01fc5822 100644 --- a/libarchive/archive_crc32.h +++ b/libarchive/archive_crc32.h @@ -23,6 +23,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + /* * When zlib is unavailable, we should still be able to validate * uncompressed zip archives. That requires us to be able to compute diff --git a/libarchive/archive_endian.h b/libarchive/archive_endian.h index 3c62fbf53..cc0266e28 100644 --- a/libarchive/archive_endian.h +++ b/libarchive/archive_endian.h @@ -28,6 +28,10 @@ * Borrowed from FreeBSD's */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + /* Note: This is a purely internal header! */ /* Do not use this outside of libarchive internal code! */ diff --git a/libarchive/archive_entry_private.h b/libarchive/archive_entry_private.h index a4317decb..c1d7c3f94 100644 --- a/libarchive/archive_entry_private.h +++ b/libarchive/archive_entry_private.h @@ -25,6 +25,10 @@ * $FreeBSD: src/lib/libarchive/archive_entry_private.h,v 1.6 2008/09/30 03:53:03 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_ENTRY_PRIVATE_H_INCLUDED #define ARCHIVE_ENTRY_PRIVATE_H_INCLUDED diff --git a/libarchive/archive_hash.h b/libarchive/archive_hash.h index df87854ab..6ba0da308 100644 --- a/libarchive/archive_hash.h +++ b/libarchive/archive_hash.h @@ -23,6 +23,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + /* * Hash function support in various Operating Systems: * diff --git a/libarchive/archive_platform.h b/libarchive/archive_platform.h index 88bcfd505..75abc1bad 100644 --- a/libarchive/archive_platform.h +++ b/libarchive/archive_platform.h @@ -25,6 +25,8 @@ * $FreeBSD: src/lib/libarchive/archive_platform.h,v 1.32 2008/12/06 05:53:05 kientzle Exp $ */ +/* !!ONLY FOR USE INTERNALLY TO LIBARCHIVE!! */ + /* * This header is the first thing included in any of the libarchive * source files. As far as possible, platform-specific issues should diff --git a/libarchive/archive_private.h b/libarchive/archive_private.h index 6381abdb8..67374a4ff 100644 --- a/libarchive/archive_private.h +++ b/libarchive/archive_private.h @@ -25,6 +25,10 @@ * $FreeBSD: src/lib/libarchive/archive_private.h,v 1.32 2008/12/06 06:23:37 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_PRIVATE_H_INCLUDED #define ARCHIVE_PRIVATE_H_INCLUDED diff --git a/libarchive/archive_read_disk_private.h b/libarchive/archive_read_disk_private.h index fd385a6b7..3e8884b61 100644 --- a/libarchive/archive_read_disk_private.h +++ b/libarchive/archive_read_disk_private.h @@ -26,6 +26,10 @@ * $FreeBSD$ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_READ_DISK_PRIVATE_H_INCLUDED #define ARCHIVE_READ_DISK_PRIVATE_H_INCLUDED diff --git a/libarchive/archive_read_private.h b/libarchive/archive_read_private.h index 0808cbc1d..e64d69137 100644 --- a/libarchive/archive_read_private.h +++ b/libarchive/archive_read_private.h @@ -25,6 +25,10 @@ * $FreeBSD: src/lib/libarchive/archive_read_private.h,v 1.7 2008/12/06 06:45:15 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_READ_PRIVATE_H_INCLUDED #define ARCHIVE_READ_PRIVATE_H_INCLUDED diff --git a/libarchive/archive_string.h b/libarchive/archive_string.h index 9b6f22232..3d3730400 100644 --- a/libarchive/archive_string.h +++ b/libarchive/archive_string.h @@ -26,6 +26,10 @@ * */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_STRING_H_INCLUDED #define ARCHIVE_STRING_H_INCLUDED diff --git a/libarchive/archive_windows.h b/libarchive/archive_windows.h index cbbb1b8f9..250d3fb4a 100644 --- a/libarchive/archive_windows.h +++ b/libarchive/archive_windows.h @@ -27,6 +27,10 @@ * $FreeBSD$ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED #define LIBARCHIVE_ARCHIVE_WINDOWS_H_INCLUDED diff --git a/libarchive/archive_write_disk_private.h b/libarchive/archive_write_disk_private.h index 1e8ad6922..3722c19b4 100644 --- a/libarchive/archive_write_disk_private.h +++ b/libarchive/archive_write_disk_private.h @@ -26,6 +26,10 @@ * $FreeBSD: src/lib/libarchive/archive_write_disk_private.h,v 1.1 2007/03/03 07:37:36 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_WRITE_DISK_PRIVATE_H_INCLUDED #define ARCHIVE_WRITE_DISK_PRIVATE_H_INCLUDED diff --git a/libarchive/archive_write_private.h b/libarchive/archive_write_private.h index 58a96757d..6192071ff 100644 --- a/libarchive/archive_write_private.h +++ b/libarchive/archive_write_private.h @@ -25,6 +25,10 @@ * $FreeBSD: src/lib/libarchive/archive_write_private.h,v 1.3 2008/03/15 11:04:45 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef ARCHIVE_WRITE_PRIVATE_H_INCLUDED #define ARCHIVE_WRITE_PRIVATE_H_INCLUDED diff --git a/libarchive/config_freebsd.h b/libarchive/config_freebsd.h index f8224b322..87b154fef 100644 --- a/libarchive/config_freebsd.h +++ b/libarchive/config_freebsd.h @@ -25,9 +25,14 @@ * $FreeBSD: src/lib/libarchive/config_freebsd.h,v 1.15 2008/09/30 03:53:03 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + /* FreeBSD 5.0 and later have ACL and extattr support. */ #if __FreeBSD__ > 4 #define HAVE_ACL_CREATE_ENTRY 1 +#define HAVE_ACL_GET_LINK_NP 1 #define HAVE_ACL_GET_PERM_NP 1 #define HAVE_ACL_INIT 1 #define HAVE_ACL_SET_FD 1 diff --git a/libarchive/config_windows.h b/libarchive/config_windows.h index 730e31dc2..a9d7150cf 100644 --- a/libarchive/config_windows.h +++ b/libarchive/config_windows.h @@ -1,5 +1,10 @@ /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ + +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef CONFIG_H_INCLUDED #define CONFIG_H_INCLUDED diff --git a/libarchive/filter_fork.h b/libarchive/filter_fork.h index 685efda09..3eb446eeb 100644 --- a/libarchive/filter_fork.h +++ b/libarchive/filter_fork.h @@ -25,6 +25,10 @@ * $FreeBSD: src/lib/libarchive/filter_fork.h,v 1.1 2007/05/29 01:00:20 kientzle Exp $ */ +#ifndef __LIBARCHIVE_BUILD +#error This header is only to be used internally to libarchive. +#endif + #ifndef FILTER_FORK_H #define FILTER_FORK_H