--- sys/modules/hyperv/netvsc/Makefile 2015-08-16 12:58:59.313652000 +0700 +++ sys/modules/hyperv/netvsc/Makefile 2015-08-16 20:39:14.425403000 +0700 @@ -1,5 +1,7 @@ # $FreeBSD: stable/10/sys/modules/hyperv/netvsc/Makefile 255923 2013-09-28 07:04:03Z uqs $ +.include + .PATH: ${.CURDIR}/../../../dev/hyperv/netvsc KMOD= hv_netvsc @@ -10,4 +12,18 @@ CFLAGS+= -I${.CURDIR}/../../../dev/hyperv/netvsc +.if !defined(KERNBUILDDIR) +SRCS+= opt_inet.h opt_inet6.h + +.if ${MK_INET_SUPPORT} != "no" +opt_inet.h: + echo "#define INET 1" >> ${.TARGET} +.endif + +.if ${MK_INET6_SUPPORT} != "no" +opt_inet6.h: + echo "#define INET6 1" >> ${.TARGET} +.endif +.endif + .include