kni: fix vhost build with kernels 3.19 and 4.0
[dpdk.git] / lib / librte_eal / linuxapp / kni / compat.h
index 1313523..1ad22ba 100644 (file)
@@ -19,3 +19,7 @@
 #define sk_sleep(s) (s)->sk_sleep
 
 #endif /* < 2.6.35 */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
+#define HAVE_IOV_ITER_MSGHDR
+#endif