[tor-dev] test_status.c on MSVC

Gisle Vanem gvanem at yahoo.no
Sat May 10 11:22:00 UTC 2014

The test/test_status.c fails to compile using MSVC since
the statement:
  log_global_min_severity_ = LOG_DEBUG;

Ref. https://gitweb.torproject.org/tor.git/commit/3ce3984772b673b82a87aded1bc8a1a0f1969e19?f=src/test/test_status.c

This 'log_global_min_severity_' variable should not be only for GNU-C?
So this patch fixed it for MSVC:

--- common/torlog.h.orig  2014-05-09 23:20:36 +0000
+++ common/torlog.h       2014-05-10 13:06:15 +0000
@@ -156,9 +156,9 @@
 int tor_log_get_sigsafe_err_fds(const int **out);
 void tor_log_update_sigsafe_err_fds(void);

-#if defined(__GNUC__) || defined(RUNNING_DOXYGEN)
 extern int log_global_min_severity_;

+#if defined(__GNUC__) || defined(RUNNING_DOXYGEN)
 void log_fn_(int severity, log_domain_mask_t domain,
              const char *funcname, const char *format, ...)


More information about the tor-dev mailing list