#define FUSE_USE_VERSION 26
-#include <sys/types.h> /* sometimes required before <attr/xattr.h> */
-
-#include <attr/xattr.h>
+#include <sys/types.h> /* sometimes required before <sys/xattr.h> */
+#include <sys/xattr.h>
#include <dirent.h>
#include <errno.h>
#include <fuse.h>
# define O_NOFOLLOW 0 /* Security only... */
#endif
+#ifndef ENOATTR
+# define ENOATTR ENODATA
+#endif
+
#define WIMFS_MQUEUE_NAME_LEN 32
#define WIMLIB_UNMOUNT_FLAG_SEND_PROGRESS 0x80000000
return ret;
}
-static struct fuse_operations wimfs_operations = {
+static const struct fuse_operations wimfs_operations = {
.chmod = wimfs_chmod,
.chown = wimfs_chown,
.fgetattr = wimfs_fgetattr,