summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>1996-10-08 04:38:08 +0000
committerPaul Mackerras <paulus@samba.org>1996-10-08 04:38:08 +0000
commit21cdaec64fc3385795f4318fdf2358f503ec26ba (patch)
tree06d31cfd76cdbe476529e5d7eed69327dfb7dc5c /common
parentc48617290e993c0c195b661a4d738ea30fabab05 (diff)
downloadppp-21cdaec64fc3385795f4318fdf2358f503ec26ba.tar.gz
fix for freebsd
Diffstat (limited to 'common')
-rw-r--r--common/zlib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/zlib.c b/common/zlib.c
index 4a518e2..e9dc177 100644
--- a/common/zlib.c
+++ b/common/zlib.c
@@ -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 */