Don't include ipfilter.h if building an LKM.

This commit is contained in:
scottr 1997-02-19 23:07:57 +00:00
parent 69da16abc9
commit 54b157939d
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pfil.h,v 1.4 1997/02/18 20:49:32 mrg Exp $ */
/* $NetBSD: pfil.h,v 1.5 1997/02/19 23:09:56 scottr Exp $ */
/*
* Copyright (c) 1996 Matthew R. Green
@ -64,7 +64,9 @@ void pfil_remove_hook __P((int (*func) __P((void *, int,
#endif /* _KERNEL */
/* XXX */
#ifndef _LKM
#include "ipfilter.h"
#endif
#if NIPFILTER > 0
#define PFIL_HOOKS

View File

@ -1,4 +1,4 @@
/* $NetBSD: fil.c,v 1.3 1997/02/18 20:49:33 mrg Exp $ */
/* $NetBSD: fil.c,v 1.4 1997/02/19 23:07:57 scottr Exp $ */
/*
* (C)opyright 1993-1996 by Darren Reed.
@ -34,7 +34,9 @@ static char rcsid[] = "Id: fil.c,v 1.3.4.12 1996/12/02 11:51:24 darrenr Exp";
#include <sys/protosw.h>
#include <sys/socket.h>
#ifndef _LKM
#include "ipfilter.h"
#endif
#include <net/if.h>
#ifdef sun

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_fil.h,v 1.3 1997/02/18 20:49:34 mrg Exp $ */
/* $NetBSD: ip_fil.h,v 1.4 1997/02/19 23:07:59 scottr Exp $ */
/*
* (C)opyright 1993-1996 by Darren Reed.
@ -14,7 +14,7 @@
#ifndef __IP_FIL_H__
#define __IP_FIL_H__
#ifdef _KERNEL
#if defined(_KERNEL) && !defined(_LKM)
#include "ipfilter.h"
#endif