]> git.ozlabs.org Git - ppp.git/blobdiff - common/zlib.c
fix for freebsd
[ppp.git] / common / zlib.c
index 4a518e27f10fb5f67733878aa1dda2045b0992bd..e9dc1770c94f667b7001b861d4aa3e416ab979b9 100644 (file)
@@ -11,7 +11,7 @@
  * - added Z_PACKET_FLUSH (see zlib.h for details)
  * - added inflateIncomp
  *
- * $Id: zlib.c,v 1.3 1996/09/26 06:29:43 paulus Exp $
+ * $Id: zlib.c,v 1.4 1996/10/08 04:38:00 paulus Exp $
  */
 
 /* 
@@ -88,12 +88,15 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */
          /* functions */
 
 #if defined(KERNEL) || defined(_KERNEL)
-/* Assume we're not being compiled under Linux */
 #include <sys/types.h>
 #include <sys/systm.h>
 #  define zmemcpy(d, s, n)     bcopy((s), (d), (n))
 #  define zmemzero             bzero
 
+#ifdef FreeBSD
+#define inflate        inflate_ppp
+#endif
+
 #else
 #if defined(__KERNEL__)
 /* Assume this is Linux */