aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXavier Roche <xavier.roche@open.eurogiciel.org>2015-04-17 20:18:30 -0500
committerRob Landley <rob@landley.net>2015-04-17 20:18:30 -0500
commit58c326901827e1b54a7d82fb38633eafc448874d (patch)
tree6b9013f6337a29eb3f2fe20007b40eadf2c3ee25 /lib
parent517469767559376e1ee7b11982d169023bcc1571 (diff)
downloadtoybox-58c326901827e1b54a7d82fb38633eafc448874d.tar.gz
Link against libattr and libsmack.
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
+