datapath: Check for backported __wsum and __sum16.
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / types.h
index d88baf7..b989d96 100644 (file)
@@ -3,13 +3,10 @@
 
 #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;