From: Ben Pfaff Date: Tue, 18 Oct 2011 16:46:57 +0000 (-0700) Subject: types: Fix endianness check. X-Git-Tag: v1.3.0~78 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=39f7417d8220cd1b5187560598727d9e189dd589;p=sliver-openvswitch.git types: Fix endianness check. The Linux headers only check endianness if __CHECK_ENDIAN__ is declared. We want that, so turn it on. --- diff --git a/include/linux/types.h b/include/linux/types.h index 13112e8f5..fb0574410 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 * and only works if you do so in that order, so * force it. */ + +#ifdef __CHECKER__ +#define __CHECK_ENDIAN__ +#endif + #include #include_next #else /* no */