To install the following patches cd to the zlib-1.1.3 (or whatever)
directory and execute the follwing command

patch -p1 -s <this-file

where this-file is expected to be found in ../doc/PATCHES.ZLIB,
relative to the zlib-1.1.3 (or whatever) directory.

# --------------------------------------------------------------------
# the following patch is necessary to get zlib work here, properly
# --------------------------------------------------------------------

diff -rPc zlib-1.1.3/configure zlib113/configure
*** zlib-1.1.3/configure	Wed Jul  8 20:19:35 1998
--- zlib113/configure	Sat Oct 16 22:59:08 1999
***************
*** 50,55 ****
--- 50,56 ----
      -l* | --l*) libdir="$2"; shift; shift;;
      -i* | --i*) includedir="$2"; shift; shift;;
      -s* | --s*) shared=1; shift;;
+     *) shift
      esac
  done
  

# --------------------------------------------------------------
# The following patches allow to compile under NT/w9x for peks
# --------------------------------------------------------------

diff -rPc --exclude CVS zlib113/nmake.bat winzlib113/nmake.bat
*** zlib113/nmake.bat	Thu Jan  1 01:00:00 1970
--- winzlib113/nmake.bat	Sun Oct 31 18:46:25 1999
***************
*** 0 ****
--- 1 ----
+ nmake.exe /f nmake.w32 %1 %2 %3 %4 %5 %6 %7 %8 %9
diff -rPc --exclude CVS zlib113/nmake.w32 winzlib113/nmake.w32
*** zlib113/nmake.w32	Thu Jan  1 01:00:00 1970
--- winzlib113/nmake.w32	Sun Oct 31 21:39:05 1999
***************
*** 0 ****
--- 1,93 ----
+ # Makefile for zlib
+ 
+ !include <ntwin32.mak>
+ 
+ CC=cl
+ LD=link
+ CFLAGS=-O -nologo
+ LDFLAGS=
+ O=.obj
+ 
+ # variables
+ OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
+   trees$(O)
+ OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
+   infutil$(O) inffast$(O)
+ 
+ all:  zlib.dll example.exe minigzip.exe
+ 
+ adler32.obj: adler32.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ compress.obj: compress.c zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ crc32.obj: crc32.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ gzio.obj: gzio.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
+    infcodes.h infutil.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
+    infcodes.h inffast.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ uncompr.obj: uncompr.c zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ zutil.obj: zutil.c zutil.h zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ example.obj: example.c zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ minigzip.obj: minigzip.c zlib.h zconf.h
+ 	$(CC) -c $(cvarsdll) $(CFLAGS) $*.c
+ 
+ zlib.dll: $(OBJ1) $(OBJ2) nt\zlib.dnt
+ 	$(LD) $(dlllflags) -map -out:$@ -def:nt\zlib.dnt $(OBJ1) $(OBJ2) $(guilibsdll)
+ 
+ zlib.lib: zlib.dll
+ 
+ example.exe: example.obj zlib.lib
+ 	$(LD) $(LDFLAGS) example.obj zlib.lib
+ 
+ minigzip.exe: minigzip.obj zlib.lib
+ 	$(LD) $(LDFLAGS) minigzip.obj zlib.lib
+ 
+ test: example.exe minigzip.exe
+ 	example
+ 	echo hello world | minigzip | minigzip -d 
+ 
+ clean:
+ 	-del *.obj
+ 	-del *.map
+ 	-del *.exp
+ 	-del *.exe
+ 
+ distclean: clean
+ 	-del *.dll
+ 	-del *.lib
+ 
