kni: fix vhost build with kernel 4.1
[dpdk.git] / lib / librte_eal / linuxapp / kni / compat.h
index 1ad22ba..cf100b6 100644 (file)
@@ -23,3 +23,7 @@
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
 #define HAVE_IOV_ITER_MSGHDR
 #endif
+
+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
+#define HAVE_KIOCB_MSG_PARAM
+#endif /* < 4.1.0 */