projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c8482e
)
types: Fix endianness check.
author
Ben Pfaff
<blp@nicira.com>
Tue, 18 Oct 2011 16:46:57 +0000
(09:46 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 18 Oct 2011 17:23:42 +0000
(10:23 -0700)
The Linux headers only check endianness if __CHECK_ENDIAN__ is declared.
We want that, so turn it on.
include/linux/types.h
patch
|
blob
|
history
diff --git
a/include/linux/types.h
b/include/linux/types.h
index 13112e8f55bba715cace58a0ebda5ba4aada28d8..fb0574410e32b932c7f8fe5d44f1bab524bf91eb 100644
(file)
--- 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> */