diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/lib/log/include.am | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 6d112b8c2f..c99f9eee95 100644 --- a/configure.ac +++ b/configure.ac @@ -422,7 +422,7 @@ AH_BOTTOM([ #endif ]) - +AM_CONDITIONAL(WIN32, test "x$bwin32" = "xtrue") AM_CONDITIONAL(BUILD_NT_SERVICES, test "x$bwin32" = "xtrue") AM_CONDITIONAL(BUILD_LIBTORRUNNER, test "x$bwin32" != "xtrue") diff --git a/src/lib/log/include.am b/src/lib/log/include.am index 22b141d316..f0491b3863 100644 --- a/src/lib/log/include.am +++ b/src/lib/log/include.am @@ -9,8 +9,11 @@ src_lib_libtor_log_a_SOURCES = \ src/lib/log/escape.c \ src/lib/log/ratelim.c \ src/lib/log/torlog.c \ - src/lib/log/util_bug.c \ - src/lib/log/win32err.c + src/lib/log/util_bug.c + +if WIN32 +src_lib_libtor_log_a_SOURCES += src/lib/log/win32err.c +endif src_lib_libtor_log_testing_a_SOURCES = \ $(src_lib_libtor_log_a_SOURCES) |