[ovs-dev] [PATCH] datapath-windows: Fix compilation for kernel module.

Saurabh Shah ssaurabh at vmware.com
Wed Jul 30 11:27:15 UTC 2014


These have the common structures that are shared with the windows kernel
extension.

Bug - https://github.com/openvswitch/ovs/issues/11.

Signed-off-by: Saurabh Shah <ssaurabh at vmware.com>
---
 include/linux/openvswitch.h |    2 ++
 lib/netlink-protocol.h      |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h
index 271a14e..9f94138 100644
--- a/include/linux/openvswitch.h
+++ b/include/linux/openvswitch.h
@@ -40,8 +40,10 @@
 #ifndef _LINUX_OPENVSWITCH_H
 #define _LINUX_OPENVSWITCH_H 1
 
+#ifndef OVS_WIN_DP
 #include <linux/types.h>
 #include <linux/if_ether.h>
+#endif
 
 /**
  * struct ovs_header - header for OVS Generic Netlink messages.
diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h
index 8938055..d4fb9bf 100644
--- a/lib/netlink-protocol.h
+++ b/lib/netlink-protocol.h
@@ -29,9 +29,11 @@
  * on other platforms it directly defines the structures and macros itself.
  */
 
+#ifndef OVS_WIN_DP
 #include <stdint.h>
 #include <sys/socket.h>
 #include "util.h"
+#endif
 
 #ifdef HAVE_NETLINK
 #include <linux/netlink.h>
-- 
1.7.9.5




More information about the dev mailing list