diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 1cf09b94dd1e..710adbfc209b 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -23,6 +23,8 @@ static const char rcsid[] = #include #include #include +#include +#include #include #include @@ -325,6 +327,10 @@ main(ac, av) usage(); } + if (modfind("snp") == -1) + if (kldload("snp") == -1 || modfind("snp") == -1) + warn("snp module not available"); + signal(SIGINT, cleanup); setup_scr();