From d794eeb598fb94f1ea2c98aef04662b3909f79b6 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 29 Jan 2012 22:39:58 +0100 Subject: [PATCH] kernel: Add some missing headers to the Makefiles of cryptodev and tun. Reported-by: CosmicDJ on #dragonflybsd --- sys/dev/crypto/cryptodev/Makefile | 3 +-- sys/net/tun/Makefile | 9 ++++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/dev/crypto/cryptodev/Makefile b/sys/dev/crypto/cryptodev/Makefile index 515b4e209c..bdaeda9f11 100644 --- a/sys/dev/crypto/cryptodev/Makefile +++ b/sys/dev/crypto/cryptodev/Makefile @@ -1,8 +1,7 @@ # $FreeBSD: src/sys/modules/cryptodev/Makefile,v 1.1.2.1 2002/11/21 23:38:46 sam Exp $ -# $DragonFly: src/sys/dev/crypto/cryptodev/Makefile,v 1.3 2003/08/15 08:32:28 dillon Exp $ .PATH: ${.CURDIR}/../../../opencrypto KMOD = cryptodev -SRCS = cryptodev.c +SRCS = cryptodev.c device_if.h bus_if.h .include diff --git a/sys/net/tun/Makefile b/sys/net/tun/Makefile index ed19c7f517..8081e0d29a 100644 --- a/sys/net/tun/Makefile +++ b/sys/net/tun/Makefile @@ -2,12 +2,12 @@ .PATH: ${.CURDIR}/../../net KMOD= if_tun -SRCS= if_tun.c opt_inet.h opt_inet6.h opt_ipx.h +SRCS= if_tun.c opt_inet.h opt_inet6.h opt_ipx.h use_tun.h -NBPF?= 1 -NTUN?= 2 +NTUN?= 2 CFLAGS+= ${PROTOS} +CLEANFILES= use_tun.h .if !defined(BUILDING_WITH_KERNEL) opt_inet.h: @@ -20,4 +20,7 @@ opt_ipx.h: echo "#define IPX 1" > opt_ipx.h .endif +use_tun.h: + echo "#define NTUN ${NTUN}" > use_tun.h + .include -- 2.11.4.GIT