Simplify where version.h is included.
authorWayne Davison <wayne@opencoder.net>
Fri, 7 Aug 2020 04:10:46 +0000 (21:10 -0700)
committerWayne Davison <wayne@opencoder.net>
Fri, 7 Aug 2020 04:10:46 +0000 (21:10 -0700)
Makefile.in
rsync.h
usage.c

index d935651ae23012f5669c032ae2248340fcfe3a21..2b55d9f7504ec350e68a579febf51786584e8090 100644 (file)
@@ -35,7 +35,7 @@ ASM_x86_64=lib/md5-asm-x86_64.o
 GENFILES=configure.sh aclocal.m4 config.h.in rsync.1 rsync.1.html \
         rsync-ssl.1 rsync-ssl.1.html rsyncd.conf.5 rsyncd.conf.5.html
 HEADERS=byteorder.h config.h errcode.h proto.h rsync.h ifuncs.h itypes.h inums.h \
-       lib/pool_alloc.h lib/mdigest.h lib/md-defines.h version.h
+       lib/pool_alloc.h lib/mdigest.h lib/md-defines.h
 LIBOBJ=lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o \
        lib/permstring.o lib/pool_alloc.o lib/sysacls.o lib/sysxattrs.o @LIBOBJS@
 zlib_OBJS=zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o \
@@ -99,7 +99,7 @@ rsync$(EXEEXT): $(OBJS)
 $(OBJS): $(HEADERS)
 $(CHECK_OBJS): $(HEADERS)
 tls.o xattrs.o: lib/sysxattrs.h
-usage.o: latest-year.h help-rsync.h help-rsyncd.h git-version.h default-cvsignore.h
+usage.o: version.h latest-year.h help-rsync.h help-rsyncd.h git-version.h default-cvsignore.h
 loadparm.o: default-dont-compress.h daemon-parm.h
 
 flist.o: rounding.h
diff --git a/rsync.h b/rsync.h
index 0f5304ee255493f44c782924f648a702765fe8ce..0b618d16d04436e5e67983e30e42856102868db4 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -300,7 +300,6 @@ enum delret {
 #include "errcode.h"
 
 #include "config.h"
-#include "version.h"
 
 /* The default RSYNC_RSH is always set in config.h. */
 
diff --git a/usage.c b/usage.c
index 66857bb48863918a8b7ddf0220ba3431e405f81f..2b5f3761d1b5c0c9a320f8e8c1d37efe2fc28150 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -18,6 +18,7 @@
  */
 
 #include "rsync.h"
+#include "version.h"
 #include "latest-year.h"
 #include "git-version.h"
 #include "default-cvsignore.h"