From: Russell Bryant Date: Wed, 10 Feb 2016 22:03:32 +0000 (-0500) Subject: vlog: Fix windows build. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=4080dd7f2360a13e697793c916f5e31594a703e1 vlog: Fix windows build. A recent change changed this constructor to "init_this_module". This breaks the build on windows according to AppVeyor. Include the module name in the constructor name to work around the issue. Fixes: 922fed065e65 ("vlog: Make the most common module reference more direct.") Signed-off-by: Russell Bryant Signed-off-by: Ben Pfaff --- diff --git a/include/openvswitch/vlog.h b/include/openvswitch/vlog.h index feade728c..de64cbd8a 100644 --- a/include/openvswitch/vlog.h +++ b/include/openvswitch/vlog.h @@ -181,7 +181,7 @@ void vlog_rate_limit(const struct vlog_module *, enum vlog_level, VLL_INFO, /* min_level */ \ true /* honor_rate_limits */ \ }; \ - OVS_CONSTRUCTOR(init_this_module) { \ + OVS_CONSTRUCTOR(init_this_module_##MODULE) { \ vlog_insert_module(&this_module.list); \ } \ \