Reported-by: Alexey I. Froloff <raorn@altlinux.org>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
OVS_GREP_IFELSE([$KSRC26/include/linux/types.h], [bool],
[OVS_DEFINE([HAVE_BOOL_TYPE])])
OVS_GREP_IFELSE([$KSRC26/include/linux/types.h], [bool],
[OVS_DEFINE([HAVE_BOOL_TYPE])])
+ OVS_GREP_IFELSE([$KSRC26/include/linux/types.h], [__wsum],
+ [OVS_DEFINE([HAVE_CSUM_TYPES])])
OVS_GREP_IFELSE([$KSRC26/include/net/checksum.h], [csum_unfold],
[OVS_DEFINE([HAVE_CSUM_UNFOLD])])
OVS_GREP_IFELSE([$KSRC26/include/net/checksum.h], [csum_unfold],
[OVS_DEFINE([HAVE_CSUM_UNFOLD])])
#include <linux/log2.h>
#endif
#include <linux/log2.h>
#endif
+#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
#undef pr_emerg
#define pr_emerg(fmt, ...) \
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
#undef pr_emerg
#define pr_emerg(fmt, ...) \
#include_next <linux/types.h>
#include_next <linux/types.h>
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
-
typedef __u16 __bitwise __sum16;
typedef __u32 __bitwise __wsum;
typedef __u16 __bitwise __sum16;
typedef __u32 __bitwise __wsum;
-
-#endif /* linux kernel < 2.6.20 */
#ifndef HAVE_BOOL_TYPE
typedef _Bool bool;
#ifndef HAVE_BOOL_TYPE
typedef _Bool bool;