Fixed xattr.h includes

This commit is contained in:
Hadrien Copponnex 2018-11-08 11:18:13 +01:00
parent 11a3c461ec
commit e69ff279fa
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -13,8 +13,12 @@
#ifndef _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_REPLACE 0x2 /* set value, fail if attr does not exist */
#endif
/* Namespaces */
#define XATTR_OS2_PREFIX "os2."