From 6858636bc235b937b1f38d9752110a0809822545 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 21 Mar 1998 13:37:44 +0000 Subject: Some patchups for when this code is compiled in userland (!). --- sys/contrib/ipfilter/netinet/ip_auth.c | 5 ++++- sys/contrib/ipfilter/netinet/ip_fil.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/contrib/ipfilter') diff --git a/sys/contrib/ipfilter/netinet/ip_auth.c b/sys/contrib/ipfilter/netinet/ip_auth.c index 3a85af3..40ffc88 100644 --- a/sys/contrib/ipfilter/netinet/ip_auth.c +++ b/sys/contrib/ipfilter/netinet/ip_auth.c @@ -6,7 +6,7 @@ * to the original author and the contributors. */ #if !defined(lint) -static const char rcsid[] = "@(#)$Id: ip_auth.c,v 1.1.1.1 1997/11/16 05:55:52 peter Exp $"; +static const char rcsid[] = "@(#)$Id: ip_auth.c,v 1.2 1998/03/21 11:33:59 peter Exp $"; #endif #if defined(KERNEL) && !defined(_KERNEL) @@ -58,6 +58,9 @@ static const char rcsid[] = "@(#)$Id: ip_auth.c,v 1.1.1.1 1997/11/16 05:55:52 pe #ifdef sun #include #endif +#if !defined(KERNEL) && (__FreeBSD_version >= 300000) +# include +#endif #include #include #include diff --git a/sys/contrib/ipfilter/netinet/ip_fil.h b/sys/contrib/ipfilter/netinet/ip_fil.h index 2e2aaa7..ecc5c3b 100644 --- a/sys/contrib/ipfilter/netinet/ip_fil.h +++ b/sys/contrib/ipfilter/netinet/ip_fil.h @@ -6,7 +6,7 @@ * to the original author and the contributors. * * @(#)ip_fil.h 1.35 6/5/96 - * $Id: ip_fil.h,v 2.0.2.39.2.10 1997/12/03 10:02:30 darrenr Exp $ + * $Id: ip_fil.h,v 1.1.1.5 1998/03/21 10:11:12 peter Exp $ */ #ifndef __IP_FIL_H__ @@ -373,6 +373,7 @@ typedef struct ipflog { #endif #ifndef _KERNEL +struct ifnet; extern int fr_check __P((ip_t *, int, void *, int, mb_t **)); extern int (*fr_checkp) __P((ip_t *, int, void *, int, mb_t **)); extern int send_reset __P((ip_t *, struct ifnet *)); -- cgit v1.1