From: Dmitry V. Levin Date: Wed, 17 Jun 2015 19:54:21 +0000 (+0000) Subject: xattr: move fallback definitions of xattr flags to xlat/ X-Git-Tag: v4.11~498 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c5619538f719d398d04e5a54fe1c099dea56572;p=strace xattr: move fallback definitions of xattr flags to xlat/ * xattr.c: Include insread of . Move definitions of XATTR_* flags ... * xlat/xattrflags.in: ... here. --- diff --git a/xattr.c b/xattr.c index 3b05d38d..5fbdec88 100644 --- a/xattr.c +++ b/xattr.c @@ -1,10 +1,7 @@ #include "defs.h" -#ifdef HAVE_LINUX_XATTR_H -# include -#else -# define XATTR_CREATE 1 -# define XATTR_REPLACE 2 +#ifdef HAVE_SYS_XATTR_H +# include #endif #include "xlat/xattrflags.h" diff --git a/xlat/xattrflags.in b/xlat/xattrflags.in index 41d1896d..37488ee5 100644 --- a/xlat/xattrflags.in +++ b/xlat/xattrflags.in @@ -1,2 +1,2 @@ -XATTR_CREATE -XATTR_REPLACE +XATTR_CREATE 1 +XATTR_REPLACE 2