OSDN Git Service

Merge remote-tracking branch 'toybox/master' into HEAD
[android-x86/external-toybox.git] / lib / lsm.h
index aacabe0..3a5b7eb 100644 (file)
--- a/lib/lsm.h
+++ b/lib/lsm.h
@@ -3,7 +3,7 @@
  * Copyright 2015 Rob Landley <rob@landley.net>
  */
 
-#ifndef BUILD_FOR_HOST
+#include <sys/xattr.h>
 
 #if CFG_TOYBOX_SELINUX
 #include <selinux/selinux.h>
@@ -21,7 +21,6 @@
 
 #if CFG_TOYBOX_SMACK
 #include <sys/smack.h>
-#include <sys/xattr.h>
 #include <linux/xattr.h>
 #else
 #define XATTR_NAME_SMACK 0
@@ -115,5 +114,3 @@ static inline int lsm_fget_context(int file, char **context)
     return smack_new_label_from_file(file, XATTR_NAME_SMACK, context);
   return fgetfilecon(file, context);
 }
-
-#endif // BUILD_FOR_HOST