Subject: Re: HEADS UP: Merge the gehenna-devsw branch.
To: MAEKAWA Masahide <>
From: TAMURA Kent <>
List: current-users
Date: 09/07/2002 01:02:11
In message "HEADS UP: Merge the gehenna-devsw branch."
    on 02/09/06, MAEKAWA Masahide <> writes:
> I have merged the gehenna-devsw branch into the trunk.

Thank you for great work.

But it caused build failures.

  defined(_KERNEL) is needed because this files is used outside the kernel.

  I'm not sure how to fix it

--- sys/netinet/ip_fil.c.~1.83.~    Fri Sep  6 23:58:13 2002
+++ sys/netinet/ip_fil.c    Sat Sep  7 00:25:26 2002
@@ -198,7 +198,7 @@
 toid_t ipfr_slowtimer_ch;

-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 106080000)
+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 106080000) && defined(_KERNEL)
 #include <sys/conf.h>
 const struct cdevsw ipl_cdevsw = {
        iplopen, iplclose, iplread, nowrite, iplioctl,

dependall ===> sys/lkm/netinet/if_ipl
CC=/home1/n/i386/obj/tools/tools.NetBSD-1.6E-i386/bin/i386--netbsdelf-gcc /home1/n/i386/obj/tools/tools.NetBSD-1.6E-i386/bin/nbmkdep -a  -DIPFILTER_LOG -I/home1/n/src/sys/netinet -DUSE_INET6 -DIPFILTER_LKM -nostdinc -I. -I/home1/n/src/sys/lkm/netinet/if_ipl -isystem /home1/n/src/sys -isystem /home1/n/src/sys/arch -D_KERNEL -D_LKM  /home1/n/src/sys/netinet/ip_fil.c /home1/n/src/sys/netinet/fil.c /home1/n/src/sys/lkm/netinet/if_ipl/mln_ipl.c /home1/n/src/sys/netinet/ip_nat.c /home1/n/src/sys/netinet/ip_frag.c /home1/n/src/sys/netinet/ip_state.c /home1/n/src/sys/netinet/ip_proxy.c /home1/n/src/sys/netinet/ip_auth.c /home1/n/src/sys/netinet/ip_log.c
/home1/n/src/sys/lkm/netinet/if_ipl/mln_ipl.c:113: macro `MOD_DEV' used with only 4 args
nbmkdep: compile failed.

TAMURA Kent <> <>