datapath-protocol: Include netlink.h.
authorJesse Gross <jesse@nicira.com>
Sun, 12 Dec 2010 18:01:19 +0000 (10:01 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 13 Dec 2010 19:08:28 +0000 (11:08 -0800)
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.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
include/linux/if_link.h
include/openvswitch/datapath-protocol.h

index 6181a5d..4afc22b 100644 (file)
@@ -12,6 +12,7 @@
  * we really need from <linux/if_link.h> is struct rtnl_link_stats64, which in
  * turn only really needs __u64.  */
 #include <linux/types.h>
+#include <linux/netlink.h>
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
index ad68e9e..db135c8 100644 (file)
@@ -68,6 +68,7 @@
 #endif
 
 #include <linux/if_link.h>
+#include <linux/netlink.h>
 
 #define ODP_MAX 256             /* Maximum number of datapaths. */