From: Jesse Gross Date: Sun, 12 Dec 2010 18:01:19 +0000 (-0800) Subject: datapath-protocol: Include netlink.h. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e801baacf583059c918f3eb194d86d0f95e8092;p=openvswitch datapath-protocol: Include netlink.h. 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 Acked-by: Ben Pfaff --- diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 6181a5d5..4afc22b6 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h @@ -12,6 +12,7 @@ * we really need from is struct rtnl_link_stats64, which in * turn only really needs __u64. */ #include +#include #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index ad68e9e1..db135c89 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -68,6 +68,7 @@ #endif #include +#include #define ODP_MAX 256 /* Maximum number of datapaths. */