Change the vlandev_get_class to vlandev_linux_class instead of vlandev_stub_class when compiling with MSVC.
This will allow the code behind dpifnetdev-linuxlinux interface to run. Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> --- lib/vlandev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vlandev.c b/lib/vlandev.c index d2f5a37..f9424fd 100644 --- a/lib/vlandev.c +++ b/lib/vlandev.c @@ -38,7 +38,7 @@ struct vlandev_class { int (*vd_del)(const char *vlan_dev); }; -#ifdef __linux__ +#if defined(__linux__) || defined(WIN32) static const struct vlandev_class vlandev_linux_class; #endif static const struct vlandev_class vlandev_stub_class; @@ -61,7 +61,7 @@ static const struct vlandev_class * vlandev_get_class(void) { if (!vd_class) { -#if __linux__ +#if defined(__linux__) || defined(WIN32) vd_class = &vlandev_linux_class; #else vd_class = &vlandev_stub_class; -- 1.9.0.msysgit.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev