Handle linking with a zlib with external read_buf.
authorWayne Davison <wayne@opencoder.net>
Mon, 11 Apr 2022 15:29:54 +0000 (08:29 -0700)
committerWayne Davison <wayne@opencoder.net>
Mon, 11 Apr 2022 15:29:54 +0000 (08:29 -0700)
rsync.h

diff --git a/rsync.h b/rsync.h
index 4b30570bbd51262e4fe14967ec15212cfc9d80a3..e5aacd25fcd3317ab9cadc491c049fd6bbe4798c 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -1172,6 +1172,10 @@ struct name_num_obj {
        struct name_num_item list[10]; /* we'll get a compile error/warning if this is ever too small */
 };
 
+#ifdef EXTERNAL_ZLIB
+#define read_buf read_buf_
+#endif
+
 #ifndef __cplusplus
 #include "proto.h"
 #endif