* Copyright 2015 Rob Landley <rob@landley.net>
*/
+#include <sys/xattr.h>
+
#if CFG_TOYBOX_SELINUX
#include <selinux/selinux.h>
#else
#if CFG_TOYBOX_SMACK
#include <sys/smack.h>
-#include <sys/xattr.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)