gzip 1.4 fails to compile on a Solaris 2.5.1 machine with Sun's 'cc: WorkShop Compilers 4.2 30 Oct 1996 C 4.2' compiler with error
"inflate.c", line 592: syntax error before or at: unsigned "inflate.c", line 593: undefined symbol: delta "inflate.c", line 622: cannot recover from previous errors cc: acomp failed for inflate.c The following patch fixes this. --- inflate.c.dist Wed Jan 20 08:15:12 2010 +++ inflate.c Tue Nov 2 16:31:18 2010 @@ -527,4 +527,5 @@ register ulg b; /* bit buffer */ register unsigned k; /* number of bits in bit buffer */ + unsigned int delta; @@ -590,5 +591,5 @@ n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e); #if !defined(NOMEMCPY) && !defined(DEBUG) - unsigned int delta = w > d ? w - d : d - w; + delta = w > d ? w - d : d - w; if (delta >= e) { Tom Schulz Applied Dynamics Intl. sch...@adi.com