summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/include/endian.h')
-rw-r--r--sys/i386/include/endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h
index 9023c76..9e79a09 100644
--- a/sys/i386/include/endian.h
+++ b/sys/i386/include/endian.h
@@ -55,7 +55,7 @@
#define BYTE_ORDER LITTLE_ENDIAN
-#ifndef KERNEL
+#ifndef _KERNEL
#include <sys/cdefs.h>
#endif
@@ -73,7 +73,7 @@ __extension__ ({ register u_long __X = (x); \
: "0" (__X)); \
__X; })
-#if defined(KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU)
+#if defined(_KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU)
#define __byte_swap_long(x) \
__extension__ ({ register u_long __X = (x); \
OpenPOWER on IntegriCloud