From 807cf4006deee26e2f9aa5a886f925748fbe9d01 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Sat, 7 Dec 1996 05:08:37 +0000 Subject: [PATCH] Make LKM's build again. I have added the allegedly broken ACTUALLY_LKM_NOT_KERNEL until the real fix comes through. Whatever flag that is used to indicate building LKMs will have be be substituted in the future. This allows proper selection of the usage of the efficient, single instruction in the kernel, but alas, doesn't allow for use in userland or LKMs :-(. Them's the breaks!!! --- sys/i386/include/endian.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h index 1787c0f94636..723fda78b3b1 100644 --- a/sys/i386/include/endian.h +++ b/sys/i386/include/endian.h @@ -55,6 +55,10 @@ #ifndef KERNEL #include +#else +#ifndef ACTUALLY_LKM_NOT_KERNEL +#include "opt_cpu.h" +#endif #endif #define __word_swap_long(x) \