Subject: Re: 19981210 -current build failed (usr.sbin/ipf/ipf)
To: None <current-users@netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: current-users
Date: 12/11/1998 09:10:33
In message <17342.913334510@cesium.clock.org>
	on Thu, 10 Dec 1998 16:01:50 -0800,
	"Erik E. Fair" <fair@clock.org> wrote:
> all ===> usr.sbin/ipf/ipf
> cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -nostdinc -idirafter /altroot/usr/include -c /usr/src/usr.sbin/ipf/ipf/ipf.c
> In file included from /usr/src/usr.sbin/ipf/ipf/ipf.c:40:
> /altroot/usr/include/netinet/ip_fil.h:21: opt_ipfilter_log.h: No such file or directory
> *** Error code 1

ip_fil.h should include opt_ipfilter_log.h only _KERNEL is defined only.
I don't test yet, but may be right...

--
Takahiro Kambe <taca@sky.yamashina.kyoto.jp>

*** /sys/netinet/ip_fil.h.orig	Fri Dec 11 09:06:46 1998
--- /sys/netinet/ip_fil.h	Fri Dec 11 09:08:14 1998
***************
*** 14,26 ****
  #ifndef _NETINET_IP_FIL_H_
  #define _NETINET_IP_FIL_H_
  
- #if defined(__NetBSD__)
- # if defined(PFIL_HOOKS)
- #  include "opt_pfil_hooks.h"
- # endif
- # include "opt_ipfilter_log.h"
- #endif
- 
  /*
   * Pathnames for various IP Filter control devices.  Used by LKM
   * and userland, so defined here.
--- 14,19 ----
***************
*** 35,40 ****
--- 28,40 ----
  
  #if defined(KERNEL) && !defined(_KERNEL)
  #define	_KERNEL
+ #endif
+ 
+ #ifdefined _KERNEL && defined(__NetBSD__)
+ # if defined(PFIL_HOOKS)
+ #  include "opt_pfil_hooks.h"
+ # endif
+ # include "opt_ipfilter_log.h"
  #endif
  
  #ifndef	__P