# include <limits.h>
#endif
#include <fcntl.h>
+#include <unistd.h>
#ifdef NO_DEFLATE /* for compatibility with old definition */
# define NO_GZCOMPRESS
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
*/
-#ifndef ZLIB_H
-#define ZLIB_H
+#ifndef _ZLIB_H
+#define _ZLIB_H
#include "zconf.h"
}
#endif
-#endif /* ZLIB_H */
+#endif /* _ZLIB_H */
MAN= zlib.3
WARNS?= 2
-PATCHES!= echo ${.CURDIR}/patches/*.patch
CONTRIBDIR= ${.CURDIR}/../../contrib/zlib-1.2
.PATH: ${CONTRIBDIR}
-SRCS= adler32.c compress.c crc32.c deflate.c gzio.c infback.c
+SRCS= adler32.c compress.c crc32.c deflate.c gzclose.c gzlib.c gzread.c
+SRCS+= gzwrite.c infback.c
SRCS+= inffast.c inflate.c inftrees.c trees.c uncompr.c zopen.c zutil.c
-SRCS+= ${PATCHES}
-CFLAGS+= -I${.OBJDIR} -I${CONTRIBDIR}
+CFLAGS+= -I${CONTRIBDIR}
INCS= zconf.h zlib.h
CFLAGS+=-DHAVE_MEMCPY -I${ZLIBDIR}
SRCS+= adler32.c crc32.c deflate.c infback.c inffast.c inflate.c \
inftrees.c zutil.c
-
-ZLIB_PATCHES!= echo ${.CURDIR}/../libz/patches/*.patch
-.for patch in ${ZLIB_PATCHES}
-.for file in ${patch:R:T}
-CLEANFILES+= ${file}
-${file}: ${ZLIBDIR}/${file} ${patch}
- patch -o ${.TARGET} -i ${patch} ${ZLIBDIR}/${file}
-.endfor
-.endfor
+++ /dev/null
-$DragonFly: src/lib/libz/patches/zconf.h.patch,v 1.1 2004/11/12 18:10:42 joerg Exp $
-
---- zconf.h.orig 2004-11-12 18:56:36.000000000 +0100
-+++ zconf.h 2004-11-12 18:56:46.000000000 +0100
-@@ -5,8 +5,8 @@
-
- /* @(#) $Id$ */
-
--#ifndef ZCONF_H
--#define ZCONF_H
-+#ifndef _ZCONF_H
-+#define _ZCONF_H
-
- /*
- * If you *really* need a unique prefix for all types and library functions,
-@@ -323,4 +323,4 @@
- # pragma map(inflate_copyright,"INCOPY")
- #endif
-
--#endif /* ZCONF_H */
-+#endif /* _ZCONF_H */
+++ /dev/null
-$DragonFly: src/lib/libz/patches/zlib.h.patch,v 1.1 2004/11/12 18:10:42 joerg Exp $
-
---- zlib.h.orig 2004-10-23 15:49:54.000000000 +0200
-+++ zlib.h 2004-11-12 18:57:57.000000000 +0100
-@@ -28,8 +28,8 @@
- (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
- */
-
--#ifndef ZLIB_H
--#define ZLIB_H
-+#ifndef _ZLIB_H
-+#define _ZLIB_H
-
- #include "zconf.h"
-
-@@ -1197,4 +1197,4 @@
- }
- #endif
-
--#endif /* ZLIB_H */
-+#endif /* _ZLIB_H */