From 8e801baacf583059c918f3eb194d86d0f95e8092 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Sun, 12 Dec 2010 10:01:19 -0800 Subject: [PATCH] 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 --- include/linux/if_link.h | 1 + include/openvswitch/datapath-protocol.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/linux/if_link.h b/include/linux/if_link.h index 6181a5d59..4afc22b66 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 ad68e9e11..db135c896 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. */ -- 2.45.2