vlog: Fix windows build.
authorRussell Bryant <russell@ovn.org>
Wed, 10 Feb 2016 22:03:32 +0000 (17:03 -0500)
committerBen Pfaff <blp@ovn.org>
Wed, 10 Feb 2016 23:36:38 +0000 (15:36 -0800)
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 <russell@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
include/openvswitch/vlog.h

index feade72..de64cbd 100644 (file)
@@ -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);                      \
         }                                                               \
                                                                         \