[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Fri Jun 19 15:26:05 UTC 2020


The branch, master has been updated
       via  0c13e1b3 Prevent unnecessary xattr warning by reordering header inclusion. (#22)
      from  9da38f2f A few minor man page tweaks.

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 0c13e1b3f856621b1a3cb70d5efcb500d51e1539
Author: Holger Hoffstätte <holger at applied-asynchrony.com>
Date:   Fri Jun 19 17:22:54 2020 +0200

    Prevent unnecessary xattr warning by reordering header inclusion. (#22)
    
    xattr headers have been provided by glibc (at least on Linux/glibc)
    for many years now. Reorder the inclusion of xattr headers to
    attempt compatibility/legacy after the common case.
    This prevents the warning without changing compatibility to
    non-glibc systems.
    
    * Add dependency on lib/sysxattrs.h header in Makefile
    
    Co-authored-by: Wayne Davison <wayne at opencoder.net>

-----------------------------------------------------------------------

Summary of changes:
 Makefile.in     | 1 +
 lib/sysxattrs.h | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/Makefile.in b/Makefile.in
index 17dae3a6..31ddc43b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -100,6 +100,7 @@ rsync$(EXEEXT): $(OBJS)
 
 $(OBJS): $(HEADERS)
 $(CHECK_OBJS): $(HEADERS)
+tls.o xattrs.o: lib/sysxattrs.h
 options.o: latest-year.h help-rsync.h help-rsyncd.h
 exclude.o: default-cvsignore.h
 loadparm.o: default-dont-compress.h
diff --git a/lib/sysxattrs.h b/lib/sysxattrs.h
index 428421a0..024bbd18 100644
--- a/lib/sysxattrs.h
+++ b/lib/sysxattrs.h
@@ -1,9 +1,9 @@
 #ifdef SUPPORT_XATTRS
 
-#if defined HAVE_ATTR_XATTR_H
-#include <attr/xattr.h>
-#elif defined HAVE_SYS_XATTR_H
+#if defined HAVE_SYS_XATTR_H
 #include <sys/xattr.h>
+#elif defined HAVE_ATTR_XATTR_H
+#include <attr/xattr.h>
 #elif defined HAVE_SYS_EXTATTR_H
 #include <sys/extattr.h>
 #endif


-- 
The rsync repository.



More information about the rsync-cvs mailing list