A fix to define SUPPORT_FLAGS earlier in rsync.h.
authorWayne Davison <wayned@samba.org>
Tue, 21 Mar 2006 21:59:35 +0000 (21:59 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 21 Mar 2006 21:59:35 +0000 (21:59 +0000)
flags.diff

index a885d7e..60b48c9 100644 (file)
@@ -297,7 +297,18 @@ Modified from a patch that was written by Rolf Grossmann:
  
  /* These flags are used in the live flist data. */
  
-@@ -519,6 +520,9 @@ struct file_struct {
+@@ -337,6 +338,10 @@ enum msgcode {
+ #define schar char
+ #endif
++#ifdef HAVE_CHFLAGS
++#define SUPPORT_FLAGS 1
++#endif
++
+ /* Find a variable that is either exactly 32-bits or longer.
+  * If some code depends on 32-bit truncation, it will need to
+  * take special action in a "#if SIZEOF_INT32 > 4" section. */
+@@ -519,6 +524,9 @@ struct file_struct {
                struct hlink *links;
        } link_u;
        time_t modtime;
@@ -307,16 +318,6 @@ Modified from a patch that was written by Rolf Grossmann:
        uid_t uid;
        gid_t gid;
        mode_t mode;
-@@ -702,6 +706,9 @@ extern int errno;
- #ifdef HAVE_LINK
- #define SUPPORT_HARD_LINKS 1
- #endif
-+#ifdef HAVE_CHFLAGS
-+#define SUPPORT_FLAGS 1
-+#endif
- #ifdef HAVE_SIGACTION
- #define SIGACTION(n,h) sigact.sa_handler=(h), sigaction((n),&sigact,NULL)
 --- old/rsync.yo
 +++ new/rsync.yo
 @@ -322,6 +322,7 @@ to the detailed description below for a