]> git.ozlabs.org Git - ppp.git/blobdiff - common/zlib.h
mods to separate allocations during initialization and operation
[ppp.git] / common / zlib.h
index 5896d9015e3db8cdbce49929a49538ca63084303..01d1a5dd210b9c6b51db85751d6caa33d4f5d9cc 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: zlib.h,v 1.2 1996/04/04 02:43:58 paulus Exp $      */
+/*     $Id: zlib.h,v 1.5 1997/04/30 05:41:20 paulus Exp $      */
 
 /*
  * This file is derived from zlib.h and zconf.h from the zlib-0.95
@@ -7,6 +7,13 @@
  * decompression for PPP packets.
  */
 
+/*
+ *  ==FILEVERSION 970421==
+ *
+ * This marker is used by the Linux installation script to determine
+ * whether an up-to-date version of this file is already installed.
+ */
+
 /* zlib.h -- interface of the 'zlib' general purpose compression library
   version 0.95, Aug 16th, 1995.
 
@@ -169,6 +176,7 @@ typedef struct z_stream_s {
     struct internal_state FAR *state; /* not visible by applications */
 
     alloc_func zalloc;  /* used to allocate the internal state */
+    alloc_func zalloc_init;  /* used to allocate the internal state during initialization */
     free_func  zfree;   /* used to free the internal state */
     voidp      opaque;  /* private data object passed to zalloc and zfree */
 
@@ -370,6 +378,10 @@ extern int inflateInit OF((z_stream *strm));
 */
 
 
+#if defined(__FreeBSD__) && (defined(KERNEL) || defined(_KERNEL))
+#define inflate        inflate_ppp     /* FreeBSD already has an inflate :-( */
+#endif
+
 extern int inflate OF((z_stream *strm, int flush));
 /*
   Performs one or both of the following actions: