aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-10-18 09:46:57 -0700
committerBen Pfaff <blp@nicira.com>2011-10-18 10:23:42 -0700
commit39f7417d8220cd1b5187560598727d9e189dd589 (patch)
treeef88cb28088a90588e5bad821dce7e3eafb8af6d /include
parent9c8482e9e3459ee429ce093b6038b0ed49949c1b (diff)
types: Fix endianness check.
The Linux headers only check endianness if __CHECK_ENDIAN__ is declared. We want that, so turn it on.
Diffstat (limited to 'include')
-rw-r--r--include/linux/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index 13112e8f..fb057441 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -29,6 +29,11 @@
/* With some combinations of kernel and userspace headers, including both
* <sys/types.h> and <linux/types.h> only works if you do so in that order, so
* force it. */
+
+#ifdef __CHECKER__
+#define __CHECK_ENDIAN__
+#endif
+
#include <sys/types.h>
#include_next <linux/types.h>
#else /* no <linux/types.h> */