Moved the inclusion of the ACL include files from rsync.h into
authorWayne Davison <wayned@samba.org>
Mon, 1 May 2006 17:04:20 +0000 (17:04 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 1 May 2006 17:04:20 +0000 (17:04 +0000)
lib/sysacls.h.

acls.diff

index 7aad210..39fef28 100644 (file)
--- a/acls.diff
+++ b/acls.diff
@@ -5496,7 +5496,12 @@ latest ACL-enabling patch to send files to an older ACL-enabled rsync.
 +}
 --- old/lib/sysacls.h
 +++ new/lib/sysacls.h
-@@ -0,0 +1,28 @@
+@@ -0,0 +1,33 @@
++#if defined SUPPORT_ACLS && defined HAVE_SYS_ACL_H
++#include <sys/acl.h>
++#endif
++#include "smb_acls.h"
++
 +#define SMB_MALLOC(cnt) new_array(char, cnt)
 +#define SMB_MALLOC_P(obj) new_array(obj, 1)
 +#define SMB_MALLOC_ARRAY(obj, cnt) new_array(obj, cnt)
@@ -5900,15 +5905,10 @@ latest ACL-enabling patch to send files to an older ACL-enabled rsync.
  #include "byteorder.h"
  #include "lib/mdfour.h"
  #include "lib/wildmatch.h"
-@@ -660,6 +680,21 @@ struct chmod_mode_struct;
+@@ -660,6 +680,16 @@ struct chmod_mode_struct;
  
  #define UNUSED(x) x __attribute__((__unused__))
  
-+#if defined SUPPORT_ACLS && defined HAVE_SYS_ACL_H
-+#include <sys/acl.h>
-+#endif
-+#include "smb_acls.h"
-+
 +typedef struct {
 +    STRUCT_STAT st;
 +#ifdef SUPPORT_ACLS