summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/filemon/filemon.c5
-rw-r--r--sys/dev/filemon/filemon_wrapper.c2
-rw-r--r--sys/modules/filemon/Makefile2
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/filemon/filemon.c b/sys/dev/filemon/filemon.c
index 0108ed1..8b562e3 100644
--- a/sys/dev/filemon/filemon.c
+++ b/sys/dev/filemon/filemon.c
@@ -25,10 +25,11 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
+#include <sys/param.h>
__FBSDID("$FreeBSD$");
-#include <sys/param.h>
+#include "opt_compat.h"
+
#include <sys/file.h>
#include <sys/systm.h>
#include <sys/buf.h>
diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c
index 8ea2cb6..83ff94f 100644
--- a/sys/dev/filemon/filemon_wrapper.c
+++ b/sys/dev/filemon/filemon_wrapper.c
@@ -28,6 +28,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_compat.h"
+
#if __FreeBSD_version > 800032
#define FILEMON_HAS_LINKAT
#endif
diff --git a/sys/modules/filemon/Makefile b/sys/modules/filemon/Makefile
index e6df2bc..80cc0a0 100644
--- a/sys/modules/filemon/Makefile
+++ b/sys/modules/filemon/Makefile
@@ -4,6 +4,6 @@
KMOD= filemon
SRCS= ${KMOD}.c
-SRCS+= vnode_if.h opt_compat.h opt_capsicum.h
+SRCS+= opt_compat.h
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud