summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/watch/watch.c')
-rw-r--r--usr.sbin/watch/watch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index 1cf09b9..710adbf 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -23,6 +23,8 @@ static const char rcsid[] =
#include <sys/filio.h>
#include <sys/snoop.h>
#include <sys/stat.h>
+#include <sys/linker.h>
+#include <sys/module.h>
#include <err.h>
#include <locale.h>
@@ -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();
OpenPOWER on IntegriCloud