From 9812fe9540e97194ede174e53cb8f721f04a6660 Mon Sep 17 00:00:00 2001 From: Anders Nordby Date: Sun, 21 Apr 2002 22:01:17 +0000 Subject: Revoke previous changes to fix -z (compress) option in favor of a GCC work-around for the zlib that comes with rsync. Obtained from -current. (Yes, rsync insists on using a home-rolled zlib.) PR: 36998 Approved by: maintainer --- net/rsync/files/patch-infcodes.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 net/rsync/files/patch-infcodes.c (limited to 'net/rsync/files/patch-infcodes.c') diff --git a/net/rsync/files/patch-infcodes.c b/net/rsync/files/patch-infcodes.c new file mode 100644 index 000000000000..0dd0d99f67d7 --- /dev/null +++ b/net/rsync/files/patch-infcodes.c @@ -0,0 +1,21 @@ +--- zlib/infcodes.c.orig Tue Mar 12 02:14:58 2002 ++++ zlib/infcodes.c Sun Apr 21 21:19:46 2002 +@@ -197,8 +197,18 @@ + c->mode = COPY; + case COPY: /* o: copying bytes in window, waiting for space */ + f = q - c->sub.copy.dist; ++#ifdef __FreeBSD__ ++ { ++ /* Work-around for a FreeBSD gcc bug. */ ++ volatile inflate_blocks_statef *s1 = s; ++ ++ while (f < s1->window) /* modulo window size-"while" instead */ ++ f += s1->end - s1->window; /* of "if" handles invalid distances */ ++ } ++#else + while (f < s->window) /* modulo window size-"while" instead */ + f += s->end - s->window; /* of "if" handles invalid distances */ ++#endif + while (c->len) + { + NEEDOUT -- cgit v1.2.3