diff options
| author | Jesse Gross <jesse@nicira.com> | 2010-12-12 10:01:19 -0800 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2010-12-13 11:08:28 -0800 |
| commit | 8e801baacf583059c918f3eb194d86d0f95e8092 (patch) | |
| tree | ee5720ac9f3abfbe87ec01f66881c715f273a8a8 /include | |
| parent | a2973b1a8b539e0f7fbd1f9fbb090b406484c1bb (diff) | |
| download | openvswitch-8e801baacf583059c918f3eb194d86d0f95e8092.tar.gz | |
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 <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/if_link.h | 1 | ||||
| -rw-r--r-- | include/openvswitch/datapath-protocol.h | 1 |
2 files changed, 2 insertions, 0 deletions
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 <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) 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 <linux/if_link.h> +#include <linux/netlink.h> #define ODP_MAX 256 /* Maximum number of datapaths. */ |
