[ovs-dev] [PATCH 04/14] Initialize dpif_linux_class for MSVC as well

Alin Serdean aserdean at cloudbasesolutions.com
Fri Jul 11 01:02:35 UTC 2014


Do not bypass dpif_linux_class for the creation of dpif_class when compiling
with MSVC. This will allow the code behind dpif-linux interface to run.

Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
 lib/dpif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpif.c b/lib/dpif.c
index 2b6f36d..54f3416 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -58,7 +58,7 @@ COVERAGE_DEFINE(dpif_purge);
 COVERAGE_DEFINE(dpif_execute_with_help);
 
 static const struct dpif_class *base_dpif_classes[] = {
-#ifdef __linux__
+#if defined(__linux__) || defined(_WIN32)
     &dpif_linux_class,
 #endif
     &dpif_netdev_class,
-- 
1.9.0.msysgit.0




More information about the dev mailing list