aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_platform_xattr.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_platform_xattr.h')
-rw-r--r--libarchive/archive_platform_xattr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libarchive/archive_platform_xattr.h b/libarchive/archive_platform_xattr.h
index 4edfecfdbdf1..ad4b90ab7b2a 100644
--- a/libarchive/archive_platform_xattr.h
+++ b/libarchive/archive_platform_xattr.h
@@ -30,6 +30,12 @@
#ifndef ARCHIVE_PLATFORM_XATTR_H_INCLUDED
#define ARCHIVE_PLATFORM_XATTR_H_INCLUDED
+#ifndef __LIBARCHIVE_BUILD
+#ifndef __LIBARCHIVE_TEST_COMMON
+#error This header is only to be used internally to libarchive.
+#endif
+#endif
+
/*
* Determine if we support extended attributes
*/