[comp.os.minix] UNZIP 4.1 diffs

rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel) (05/19/91)

Here are a Makefile and some little changes to unzip.h to compile UNZIP
4.1 under Minix.

Kai Uwe Rommel

echo x - Makefile.minix
sed '/^X/s///' > Makefile.minix << '/'
XCC=		bcc
XCFLAGS=		-DUNIX -DMINIX
X
XOBJS=	file_io.o mapname.o match.o misc.o unimplod.o \
X	unreduce.o unshrink.o unzip.o
X
X.c.o:
X	$(CC) $(CFLAGS) -c $*.c -o $@
X
Xunzip:	$(OBJS)
X	$(CC) $(CFLAGS) $(OBJS) -o $@
X	strip $@
X
Xclean:
X	rm unzip $(OBJS)
/
echo x - unzip.h.dif
sed '/^X/s///' > unzip.h.dif << '/'
X*** unzip.h.orig	Sat May  4 17:21:56 1991
X--- unzip.h	Sun May 19 15:11:01 1991
X***************
X*** 16,22 ****
X  /*  OS-Dependent Includes  */
X  /***************************/
X
X! #include <stdio.h>       /* this is your standard header for all C compiles */
X  #include <ctype.h>
X  #include <errno.h>       /* used in mapped_name() */
X  #define DECLARE_ERRNO    /* everybody except MSC 6.0 */
X--- 16,24 ----
X  /*  OS-Dependent Includes  */
X  /***************************/
X
X! #ifndef MINIX
X! #include <stdio.h>       /* this is your standard header for all C compiles */
X! #endif
X  #include <ctype.h>
X  #include <errno.h>       /* used in mapped_name() */
X  #define DECLARE_ERRNO    /* everybody except MSC 6.0 */
X***************
X*** 43,54 ****
X--- 45,63 ----
X    ---------------------------------------------------------------------------*/
X
X  #ifdef UNIX               /* On some systems sys/param.h partly duplicates   */
X+
X+ # ifdef MINIX
X+ #  define BSIZE 1024
X+ # else
X+
X  #  include <sys/param.h>  /*  the contents of sys/types.h, so you don't need */
X                            /*  (and can't use) sys/types.h. (or param.h???)   */
X  #  ifndef BSIZE
X  #    define BSIZE   DEV_BSIZE   /* assume common for all Unix systems */
X  #  endif
X
X+ # endif
X+
X  #  ifndef BSD
X  #    define NO_MKDIR            /* for mapped_name() */
X  #    include <time.h>
X***************
X*** 168,175 ****
X     long lseek();
X  #endif
X
X!
X!
X
X
X  /*************/
X--- 177,185 ----
X     long lseek();
X  #endif
X
X! #ifdef MINIX
X! #include <stdio.h>
X! #endif
X
X
X  /*************/
/

/* Kai Uwe Rommel, Munich ----- rommel@lan.informatik.tu-muenchen.dbp.de */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams