#include <linux/version.h>
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(3,1,0))
-#include <net/dst.h>
-#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,1,0)) */
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 0, 0))
+#include_next <net/dst.h>
+#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,0,0)) */
#include_next <net/dst.h>
static inline struct neighbour *dst_get_neighbour(struct dst_entry *dst)
{
return rcu_dereference_raw(dst->neighbour);
}
-#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,1,0)) */
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,0,0)) */
#endif /* _COMPAT_NET_DST_H */