[ovs-dev] [PATCH 05/14] Initialize linux netdev class for MSVC as well
Alin Serdean
aserdean at cloudbasesolutions.com
Fri Jul 11 01:03:13 UTC 2014
Do not bypass the register of the netdev_linux_class, netdev_internal_class,
netdev_tap_class and netdev_vport_tunnel_register when compiling
with MSVC. This will allow the code behind netdev-linux interface to run.
Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
lib/netdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/netdev.c b/lib/netdev.c
index 25edc16..735ec88 100644
--- a/lib/netdev.c
+++ b/lib/netdev.c
@@ -125,7 +125,7 @@ netdev_initialize(void)
fatal_signal_add_hook(restore_all_flags, NULL, NULL, true);
netdev_vport_patch_register();
-#ifdef __linux__
+#if defined(__linux__) || defined(_WIN32)
netdev_register_provider(&netdev_linux_class);
netdev_register_provider(&netdev_internal_class);
netdev_register_provider(&netdev_tap_class);
--
1.9.0.msysgit.0
More information about the dev
mailing list