datapath: check for backported proto_ports_offset
[cascardo/ovs.git] / datapath / linux / compat / include / linux / in.h
index fa2e026..78f8d77 100644 (file)
@@ -4,7 +4,7 @@
 #include_next <linux/in.h>
 
 #include <linux/module.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
+#ifndef HAVE_PROTO_PORTS_OFFSET
 static inline int proto_ports_offset(int proto)
 {
        switch (proto) {