Merge pull request #14 from hadricoppo/fix-xattr-includes

Fixed xattr.h includes
This commit is contained in:
koverstreet 2018-11-08 08:26:47 -05:00 committed by GitHub
commit 8ab9dc0a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -3,13 +3,13 @@
#include <fcntl.h> #include <fcntl.h>
#include <getopt.h> #include <getopt.h>
#include <string.h> #include <string.h>
#include <sys/xattr.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/vfs.h> #include <sys/vfs.h>
#include <unistd.h> #include <unistd.h>
#include <attr/xattr.h>
#include <linux/fiemap.h> #include <linux/fiemap.h>
#include <linux/fs.h> #include <linux/fs.h>

View File

@ -13,8 +13,12 @@
#ifndef _UAPI_LINUX_XATTR_H #ifndef _UAPI_LINUX_XATTR_H
#define _UAPI_LINUX_XATTR_H #define _UAPI_LINUX_XATTR_H
#if __UAPI_DEF_XATTR
#define __USE_KERNEL_XATTR_DEFS
#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */ #define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */ #define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
#endif
/* Namespaces */ /* Namespaces */
#define XATTR_OS2_PREFIX "os2." #define XATTR_OS2_PREFIX "os2."