aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/lsm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lsm.h b/lib/lsm.h
index 3a5b7ebf..e21d424b 100644
--- a/lib/lsm.h
+++ b/lib/lsm.h
@@ -23,7 +23,9 @@
#include <sys/smack.h>
#include <linux/xattr.h>
#else
+#ifndef XATTR_NAME_SMACK
#define XATTR_NAME_SMACK 0
+#endif
//ssize_t fgetxattr (int fd, char *name, void *value, size_t size);
#define smack_smackfs_path(...) (-1)
#define smack_new_label_from_self(...) (-1)