summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-02 18:12:29 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-04-02 18:12:29 +0200
commit844007b722ddb00c878b8b701608f8bf3736a64e (patch)
treea8b2d150fceffbfe26a78aec0514c7b00aa41862 /updater
parentrecovery: use __android_log_pmsg_file_write for log files am: 13aca59 (diff)
parentMerge "Move selinux dependencies out of header files." am: 8124750 (diff)
downloadandroid_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.tar
android_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.tar.gz
android_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.tar.bz2
android_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.tar.lz
android_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.tar.xz
android_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.tar.zst
android_bootable_recovery-844007b722ddb00c878b8b701608f8bf3736a64e.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/install.cpp3
-rw-r--r--updater/updater.cpp3
-rw-r--r--updater/updater.h4
3 files changed, 6 insertions, 4 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index bc4cca913..925604f31 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -27,7 +27,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
-#include <selinux/selinux.h>
#include <ftw.h>
#include <sys/capability.h>
#include <sys/xattr.h>
@@ -40,6 +39,8 @@
#include <android-base/parseint.h>
#include <android-base/strings.h>
#include <android-base/stringprintf.h>
+#include <selinux/label.h>
+#include <selinux/selinux.h>
#include "bootloader.h"
#include "applypatch/applypatch.h"
diff --git a/updater/updater.cpp b/updater/updater.cpp
index d2a7ac97a..759c1c97e 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -29,6 +29,9 @@
#include "minzip/SysUtil.h"
#include "config.h"
+#include <selinux/label.h>
+#include <selinux/selinux.h>
+
// 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 d1dfdd05e..d3a09b93d 100644
--- a/updater/updater.h
+++ b/updater/updater.h
@@ -20,9 +20,6 @@
#include <stdio.h>
#include "minzip/Zip.h"
-#include <selinux/selinux.h>
-#include <selinux/label.h>
-
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