aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index f23d4f6e..740a4ee5 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -249,4 +249,13 @@ int getcon(void* con);
#if CFG_TOYBOX_SMACK
#include <sys/smack.h>
+#include <sys/xattr.h>
+#include <linux/xattr.h>
+#else
+#define smack_new_label_from_path(...) (-1)
+#define smack_set_label_for_path(...) (-1)
+#define smack_set_label_for_self(...) (-1)
+#define XATTR_NAME_SMACK ""
+#define SMACK_LABEL_LEN (1) /* for just ? */
#endif
+