aboutsummaryrefslogtreecommitdiff
path: root/src/or/ntmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/ntmain.c')
-rw-r--r--src/or/ntmain.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/or/ntmain.c b/src/or/ntmain.c
index ad6698e72..7163f5c9a 100644
--- a/src/or/ntmain.c
+++ b/src/or/ntmain.c
@@ -5,6 +5,15 @@
#define MAIN_PRIVATE
#include "or.h"
+#include "config.h"
+#include "main.h"
+#include "ntmain.h"
+
+#ifdef HAVE_EVENT2_EVENT_H
+#include <event2/event.h>
+#else
+#include <event.h>
+#endif
#include <tchar.h>
#define GENSRV_SERVICENAME TEXT("tor")
@@ -218,7 +227,7 @@ nt_service_control(DWORD request)
log_notice(LD_GENERAL,
"Got stop/shutdown request; shutting down cleanly.");
service_status.dwCurrentState = SERVICE_STOP_PENDING;
- event_loopexit(&exit_now);
+ event_base_loopexit(tor_libevent_get_base(), &exit_now);
return;
}
service_fns.SetServiceStatus_fn(hStatus, &service_status);