Index: tests/sys/netmap/Makefile =================================================================== --- tests/sys/netmap/Makefile (revision 345541) +++ tests/sys/netmap/Makefile (working copy) @@ -7,6 +7,7 @@ TEST_METADATA+= is_exclusive=true LDFLAGS+= -lpthread +CFLAGS+= -I${SRCTOP}/tests PLAIN_TESTS_C+= ctrl-api-test WARNS?= 6 Index: tests/sys/netmap/ctrl-api-test.c =================================================================== --- tests/sys/netmap/ctrl-api-test.c (revision 345541) +++ tests/sys/netmap/ctrl-api-test.c (working copy) @@ -48,9 +48,15 @@ #include #include +#ifdef __FreeBSD__ +#include "freebsd_test_suite/macros.h" +#endif + + #ifdef __linux__ #include #else + static int eventfd(int x __unused, int y __unused) { @@ -1831,6 +1837,10 @@ int opt; int i; +#ifdef __FreeBSD__ + PLAIN_REQUIRE_KERNEL_MODULE("if_tap", 0); +#endif + memset(&ctx_, 0, sizeof(ctx_)); {