[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gzip 1.4 compile error
From: |
Thomas Schulz |
Subject: |
gzip 1.4 compile error |
Date: |
Wed, 3 Nov 2010 11:36:12 -0400 (EDT) |
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.
address@hidden
- gzip 1.4 compile error,
Thomas Schulz <=