All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] t_attr_corruption: fix xattr.h include problems
@ 2019-02-20 17:20 Darrick J. Wong
  2019-02-21 18:09 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2019-02-20 17:20 UTC (permalink / raw)
  To: guaneryu; +Cc: David Sterba, Holger Hoffstätte, linux-xfs, fstests

From: Darrick J. Wong <darrick.wong@oracle.com>

Apparently newer versions of libattr (which haven't yet been picked up
by Debian or Ubuntu) don't ship xattr.h anymore, because we're supposed
to use the libc version in sys/xattr.h.  So do that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 src/t_attr_corruption.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/t_attr_corruption.c b/src/t_attr_corruption.c
index 1fa5e41f..f26611f9 100644
--- a/src/t_attr_corruption.c
+++ b/src/t_attr_corruption.c
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <stdint.h>
 #include <unistd.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 
 void die(const char *msg)
 {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] t_attr_corruption: fix xattr.h include problems
  2019-02-20 17:20 [PATCH] t_attr_corruption: fix xattr.h include problems Darrick J. Wong
@ 2019-02-21 18:09 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2019-02-21 18:09 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: guaneryu, Holger Hoffstätte, linux-xfs, fstests

On Wed, Feb 20, 2019 at 09:20:05AM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
> 
> Apparently newer versions of libattr (which haven't yet been picked up
> by Debian or Ubuntu) don't ship xattr.h anymore, because we're supposed
> to use the libc version in sys/xattr.h.  So do that.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
>  src/t_attr_corruption.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/t_attr_corruption.c b/src/t_attr_corruption.c
> index 1fa5e41f..f26611f9 100644
> --- a/src/t_attr_corruption.c
> +++ b/src/t_attr_corruption.c
> @@ -27,7 +27,7 @@
>  #include <string.h>
>  #include <stdint.h>
>  #include <unistd.h>
> -#include <attr/xattr.h>
> +#include <sys/xattr.h>

Works for me, thanks

Reviewed-by: David Sterba <dsterba@suse.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-21 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-20 17:20 [PATCH] t_attr_corruption: fix xattr.h include problems Darrick J. Wong
2019-02-21 18:09 ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.