summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2015-05-13 14:29:15 -0700
committerJeff Vander Stoep <jeffv@google.com>2015-06-10 13:47:47 -0700
commitc28ca56319d72ac9f026689b5516c75f719900af (patch)
tree2cb51651a1cf501be03709d65bb0565b57d1a600
parent643233ded9075628010c16feb8d2401ade3ae62c (diff)
downloadextras-c28ca56319d72ac9f026689b5516c75f719900af.tar.gz
Remove selinux/android.h from host tools
For tools built for both host and device, only include if not host. (cherry-picked from commit 6bc4a54fdbd926c032ed5c99f8b5c69f624c6312) Change-Id: Ie102bd7575d2cf5eef3f95e6063c2970d143dac8
-rw-r--r--ext4_utils/make_ext4fs.c1
-rw-r--r--ext4_utils/make_ext4fs_main.c2
-rw-r--r--f2fs_utils/f2fs_ioutils.c1
3 files changed, 2 insertions, 2 deletions
diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c
index 5c9e2085..c089d255 100644
--- a/ext4_utils/make_ext4fs.c
+++ b/ext4_utils/make_ext4fs.c
@@ -61,7 +61,6 @@
#include <selinux/selinux.h>
#include <selinux/label.h>
-#include <selinux/android.h>
#define O_BINARY 0
diff --git a/ext4_utils/make_ext4fs_main.c b/ext4_utils/make_ext4fs_main.c
index 0e2ef5e5..f28e1b22 100644
--- a/ext4_utils/make_ext4fs_main.c
+++ b/ext4_utils/make_ext4fs_main.c
@@ -32,7 +32,9 @@
#ifndef USE_MINGW
#include <selinux/selinux.h>
#include <selinux/label.h>
+#if !defined(HOST)
#include <selinux/android.h>
+#endif
#else
struct selabel_handle;
#endif
diff --git a/f2fs_utils/f2fs_ioutils.c b/f2fs_utils/f2fs_ioutils.c
index f3b2a638..a050cf8f 100644
--- a/f2fs_utils/f2fs_ioutils.c
+++ b/f2fs_utils/f2fs_ioutils.c
@@ -78,7 +78,6 @@ struct selabel_handle;
#include <selinux/selinux.h>
#include <selinux/label.h>
-#include <selinux/android.h>
#define O_BINARY 0