diff --git a/minzip/DirUtil.cpp b/minzip/DirUtil.cpp index 823b6ed2..e08e360c 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 85a00128..85b83c38 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 0f89835c..9f550f8b 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 e6b19e1f..c932c117 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. diff --git a/recovery.cpp b/recovery.cpp index b5514a1c..169413ad 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -41,10 +41,11 @@ #include #include #include +#include #include /* Android Log packet format */ #include /* private pmsg functions */ - -#include +#include +#include #include "adb_install.h" #include "bootloader.h" diff --git a/updater/install.cpp b/updater/install.cpp index bc4cca91..925604f3 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -40,6 +39,8 @@ #include #include #include +#include +#include #include "bootloader.h" #include "applypatch/applypatch.h" diff --git a/updater/updater.cpp b/updater/updater.cpp index 1693fa1d..0497d6a8 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -27,6 +27,9 @@ #include "minzip/SysUtil.h" #include "config.h" +#include +#include + // Generated by the makefile, this function defines the // RegisterDeviceExtensions() function, which calls all the // registration functions for device-specific extensions. diff --git a/updater/updater.h b/updater/updater.h index d1dfdd05..d3a09b93 100644 --- a/updater/updater.h +++ b/updater/updater.h @@ -20,9 +20,6 @@ #include #include "minzip/Zip.h" -#include -#include - typedef struct { FILE* cmd_pipe; ZipArchive* package_zip; @@ -32,6 +29,7 @@ typedef struct { size_t package_zip_len; } UpdaterInfo; +struct selabel_handle; extern struct selabel_handle *sehandle; #endif