X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Ftypes.h;h=fb0574410e32b932c7f8fe5d44f1bab524bf91eb;hb=96ada1a43ffc8ceee002c9dd0249f7db0f9609c3;hp=4579add21e3c8d6c4c4a5f06aac1b35f7c16338e;hpb=077257b83c68a36ea86f2d21c8395f60df710c21;p=openvswitch diff --git a/include/linux/types.h b/include/linux/types.h index 4579add2..fb057441 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -23,7 +23,18 @@ * to allow to work, that is, it defines * the __u and __be types. */ -#if __KERNEL__ || HAVE_LINUX_TYPES_H +#ifdef __KERNEL__ +#include_next +#elif defined(HAVE_LINUX_TYPES_H) +/* 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 */ #include