make things work on SunOS

This commit is contained in:
rsc 2004-04-20 02:03:38 +00:00
parent e637c944fe
commit a0f1e21ff9
19 changed files with 43 additions and 20 deletions

View file

@ -535,7 +535,7 @@ lzwrite(LZstate *lz, void *buf, int n)
if(n && lz->w){
nw = (*lz->w)(lz->wr, buf, n);
if(nw != n){
lz->w = nil;
lz->w = 0;
lz->wbad = 1;
}else
lz->totw += n;