X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Ftypes.h;h=b88fb1c049133e861da54b9e5e74216a3a6d3402;hb=ad4c35fe2dd8edaab6331667021b6b8410abde90;hp=4579add21e3c8d6c4c4a5f06aac1b35f7c16338e;hpb=077257b83c68a36ea86f2d21c8395f60df710c21;p=openvswitch diff --git a/include/linux/types.h b/include/linux/types.h index 4579add2..b88fb1c0 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Nicira Networks. + * Copyright (c) 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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