OSDN Git Service

Remove selinux/android.h from host tools
authorJeff Vander Stoep <jeffv@google.com>
Wed, 13 May 2015 21:29:15 +0000 (14:29 -0700)
committerJeff Vander Stoep <jeffv@google.com>
Wed, 10 Jun 2015 20:47:47 +0000 (13:47 -0700)
For tools built for both host and device, only include if not host.

(cherry-picked from commit 6bc4a54fdbd926c032ed5c99f8b5c69f624c6312)

Change-Id: Ie102bd7575d2cf5eef3f95e6063c2970d143dac8

ext4_utils/make_ext4fs.c
ext4_utils/make_ext4fs_main.c
f2fs_utils/f2fs_ioutils.c

index 5c9e208..c089d25 100644 (file)
@@ -61,7 +61,6 @@
 
 #include <selinux/selinux.h>
 #include <selinux/label.h>
-#include <selinux/android.h>
 
 #define O_BINARY 0
 
index 0e2ef5e..f28e1b2 100644 (file)
@@ -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
index f3b2a63..a050cf8 100644 (file)
@@ -78,7 +78,6 @@ struct selabel_handle;
 
 #include <selinux/selinux.h>
 #include <selinux/label.h>
-#include <selinux/android.h>
 
 #define O_BINARY 0