[ovs-dev] [compat 3/6] datapath: Include <linux/netlink.h> directly into flow.h.

Ben Pfaff blp at nicira.com
Fri Dec 10 22:47:51 UTC 2010


While doing test builds on numerous kernel versions I found that one build
failed because "struct nlattr" wasn't visible from flow.h.  I guess that
we accidentally depend on <linux/netlink.h> being included indirectly, but
this didn't always happen.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 datapath/flow.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/datapath/flow.h b/datapath/flow.h
index d58196e..808e731 100644
--- a/datapath/flow.h
+++ b/datapath/flow.h
@@ -10,6 +10,7 @@
 #define FLOW_H 1
 
 #include <linux/kernel.h>
+#include <linux/netlink.h>
 #include <linux/spinlock.h>
 #include <linux/types.h>
 #include <linux/rcupdate.h>
-- 
1.7.1





More information about the dev mailing list