summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/libkern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
index 1e106a97cd0f..c9a3bf34b5dd 100644
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -39,7 +39,9 @@
#include <sys/cdefs.h>
#include <sys/types.h>
+#ifdef _KERNEL
#include <sys/systm.h>
+#endif
/* BCD conversions. */
extern u_char const bcd2bin_data[];