diff --git a/sbin/route/Makefile b/sbin/route/Makefile index 6bae363375a9..ddebd2a1d166 100644 --- a/sbin/route/Makefile +++ b/sbin/route/Makefile @@ -19,7 +19,11 @@ CFLAGS+= -DINET6 .endif CFLAGS+= -I. +.if ${MK_NETLINK_SUPPORT} != "no" +SRCS+= route_netlink.c +.else CFLAGS+=-DWITHOUT_NETLINK +.endif HAS_TESTS= SUBDIR.${MK_TESTS}+= tests