Obey opt_inet6.h in kernel build directory.

Reported by:	Peter Losher <plosher-keyword-freebsd.a36e57__at__plosh.net>
MFC after:	3 days
This commit is contained in:
ume 2006-02-20 12:30:32 +00:00
parent ba189db15d
commit b365fc827b
2 changed files with 8 additions and 2 deletions

View File

@ -3,5 +3,13 @@
.PATH: ${.CURDIR}/../../netinet
KMOD= dummynet
SRCS= ip_dummynet.c
SRCS+= opt_inet6.h
.if !defined(KERNBUILDDIR)
.if !defined(NO_INET6)
opt_inet6.h:
echo "#define INET6 1" > ${.TARGET}
.endif
.endif
.include <bsd.kmod.mk>

View File

@ -29,9 +29,7 @@
#define DUMMYNET_DEBUG
#if !defined(KLD_MODULE)
#include "opt_inet6.h"
#endif
/*
* This module implements IP dummynet, a bandwidth limiter/delay emulator