From 6e6f514c7a8771c046a3db812413382a9e70ac64 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 21 Mar 2006 21:59:35 +0000 Subject: [PATCH] A fix to define SUPPORT_FLAGS earlier in rsync.h. --- flags.diff | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/flags.diff b/flags.diff index a885d7e..60b48c9 100644 --- a/flags.diff +++ b/flags.diff @@ -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 -- 2.34.1