git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kni: fix vhost build with kernels 3.19 and 4.0
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
kni
/
compat.h
diff --git
a/lib/librte_eal/linuxapp/kni/compat.h
b/lib/librte_eal/linuxapp/kni/compat.h
index
1313523
..
1ad22ba
100644
(file)
--- a/
lib/librte_eal/linuxapp/kni/compat.h
+++ b/
lib/librte_eal/linuxapp/kni/compat.h
@@
-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