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])])
#include_next <linux/types.h>
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
-
+#ifndef HAVE_CSUM_TYPES
typedef __u16 __bitwise __sum16;
typedef __u32 __bitwise __wsum;
-
-#endif /* linux kernel < 2.6.20 */
+#endif
#ifndef HAVE_BOOL_TYPE
typedef _Bool bool;