summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/endian.h
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-12-07 05:08:37 +0000
committerdyson <dyson@FreeBSD.org>1996-12-07 05:08:37 +0000
commit893f3f4e22f837ac1964212088fef9ddafd6f087 (patch)
tree6251b5f63327ae6737fce7d46da3ab61154da889 /sys/i386/include/endian.h
parentefc1e2b6cffc972030b21e3f12db3d0b1bdd9660 (diff)
downloadFreeBSD-src-893f3f4e22f837ac1964212088fef9ddafd6f087.zip
FreeBSD-src-893f3f4e22f837ac1964212088fef9ddafd6f087.tar.gz
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!!!
Diffstat (limited to 'sys/i386/include/endian.h')
-rw-r--r--sys/i386/include/endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h
index 1787c0f..723fda7 100644
--- a/sys/i386/include/endian.h
+++ b/sys/i386/include/endian.h
@@ -55,6 +55,10 @@
#ifndef KERNEL
#include <sys/cdefs.h>
+#else
+#ifndef ACTUALLY_LKM_NOT_KERNEL
+#include "opt_cpu.h"
+#endif
#endif
#define __word_swap_long(x) \
OpenPOWER on IntegriCloud