From 4bbd5bf8a6383d31341221b97e5e320d5abba085 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 1 Apr 2016 18:24:39 -0700 Subject: Move selinux dependencies out of header files. Bug: http://b/27764900 Change-Id: Ib62a59edcb13054f40f514c404d32b87b14ed5f1 --- minzip/DirUtil.cpp | 5 ++++- minzip/DirUtil.h | 3 +-- minzip/Zip.c | 3 +++ minzip/Zip.h | 3 +-- 4 files changed, 9 insertions(+), 5 deletions(-) (limited to 'minzip') diff --git a/minzip/DirUtil.cpp b/minzip/DirUtil.cpp index 823b6ed2f..e08e360c0 100644 --- a/minzip/DirUtil.cpp +++ b/minzip/DirUtil.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#include "DirUtil.h" + #include #include #include @@ -26,7 +28,8 @@ #include -#include "DirUtil.h" +#include +#include typedef enum { DMISSING, DDIR, DILLEGAL } DirStatus; diff --git a/minzip/DirUtil.h b/minzip/DirUtil.h index 85a00128b..85b83c387 100644 --- a/minzip/DirUtil.h +++ b/minzip/DirUtil.h @@ -24,8 +24,7 @@ extern "C" { #endif -#include -#include +struct selabel_handle; /* Like "mkdir -p", try to guarantee that all directories * specified in path are present, creating as many directories diff --git a/minzip/Zip.c b/minzip/Zip.c index 0f89835ca..9f550f8b4 100644 --- a/minzip/Zip.c +++ b/minzip/Zip.c @@ -23,6 +23,9 @@ #undef NDEBUG // do this after including Log.h #include +#include +#include + #define SORT_ENTRIES 1 /* diff --git a/minzip/Zip.h b/minzip/Zip.h index e6b19e1f0..c932c1178 100644 --- a/minzip/Zip.h +++ b/minzip/Zip.h @@ -18,8 +18,7 @@ extern "C" { #endif -#include -#include +struct selabel_handle; /* * One entry in the Zip archive. Treat this as opaque -- use accessors below. -- cgit v1.2.3