]> granicus.if.org Git - strace/commitdiff
xattr: move fallback definitions of xattr flags to xlat/
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 17 Jun 2015 19:54:21 +0000 (19:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 17 Jun 2015 19:56:11 +0000 (19:56 +0000)
* xattr.c: Include <sys/xattr.h> insread of <linux/xattr.h>.
Move definitions of XATTR_* flags ...
* xlat/xattrflags.in: ... here.

xattr.c
xlat/xattrflags.in

diff --git a/xattr.c b/xattr.c
index 3b05d38d3d10d7bd2546e84fde072d52c5f37944..5fbdec88de93f1a5c1fd81db35c030a2fec94649 100644 (file)
--- a/xattr.c
+++ b/xattr.c
@@ -1,10 +1,7 @@
 #include "defs.h"
 
-#ifdef HAVE_LINUX_XATTR_H
-# include <linux/xattr.h>
-#else
-# define XATTR_CREATE 1
-# define XATTR_REPLACE 2
+#ifdef HAVE_SYS_XATTR_H
+# include <sys/xattr.h>
 #endif
 
 #include "xlat/xattrflags.h"
index 41d1896d707bc2da141ee0bb3f8f378f7fcb7e5e..37488ee50f382a73dd09baca9a187844b1ca58ca 100644 (file)
@@ -1,2 +1,2 @@
-XATTR_CREATE
-XATTR_REPLACE
+XATTR_CREATE   1
+XATTR_REPLACE  2