[ovs-dev] [PATCH 5/5] datapath-protocol: Include netlink.h.

Jesse Gross jesse at nicira.com
Sun Dec 12 20:47:07 UTC 2010


On older kernels that don't have if_link.h, we use our own, limited
version.  This version doesn't include the netlink header, causing
problems where we were relying on it to define the types in
datapath-protocol.h.  Therefore, directly include it, since it is
better to be explicit about it anyways.
---
 include/openvswitch/datapath-protocol.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h
index ad68e9e..db135c8 100644
--- a/include/openvswitch/datapath-protocol.h
+++ b/include/openvswitch/datapath-protocol.h
@@ -68,6 +68,7 @@
 #endif
 
 #include <linux/if_link.h>
+#include <linux/netlink.h>
 
 #define ODP_MAX 256             /* Maximum number of datapaths. */
 
-- 
1.7.1





More information about the dev mailing list