diff options
author | Jan Tulak <jtulak@redhat.com> | 2015-10-14 10:58:03 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-10-14 10:58:03 +1100 |
commit | c14c7b795c0bdb92d925bab44e8239867b2883c6 (patch) | |
tree | c865074b8a1e502b6ddbe4737b1f3b3749aff63e /fsr | |
parent | 7f7fd8ac1f5cc0d3af7c2f050ac070a321581de5 (diff) | |
download | xfsprogs-dev-c14c7b795c0bdb92d925bab44e8239867b2883c6.tar.gz |
build: Add autoconf check for fsetxattr call
OS X has fsetxattr() in another header and with different arguments.
For now, check for the Linux variant and if not available, skip
the code using the call.
Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fsr')
-rw-r--r-- | fsr/xfs_fsr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index b6737614c1..e1b7bd6c03 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -1025,6 +1025,7 @@ fsr_setup_attr_fork( int tfd, xfs_bstat_t *bstatp) { +#ifdef HAVE_FSETXATTR struct stat64 tstatbuf; int i; int diff = 0; @@ -1199,6 +1200,7 @@ out: if (dflag && diff) fsrprintf(_("failed to match fork offset\n"));; +#endif /* HAVE_FSETXATTR */ return 0; } |