diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-06 09:19:09 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-06 09:25:23 -0500 |
commit | b6f099672b90cb606d89bfcb0cae01ea49e46b9c (patch) | |
tree | 72cabc1ae7b8173d2dba4a442e62657ce383c1d9 /src/app/main/ntmain.h | |
parent | 5c240db0bf7751d74ba438a1ca4ef0d051a53df7 (diff) | |
download | tor-b6f099672b90cb606d89bfcb0cae01ea49e46b9c.tar.gz tor-b6f099672b90cb606d89bfcb0cae01ea49e46b9c.zip |
Make ntmain.h functions stubs when NT_SERVICE not enabled.
This lets us simplify main.c a little, and avoid a practracker
exception.
Followup from #32883.
Diffstat (limited to 'src/app/main/ntmain.h')
-rw-r--r-- | src/app/main/ntmain.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/main/ntmain.h b/src/app/main/ntmain.h index c39386c054..e23641bffa 100644 --- a/src/app/main/ntmain.h +++ b/src/app/main/ntmain.h @@ -22,7 +22,8 @@ int nt_service_is_stopping(void); void nt_service_set_state(DWORD state); #else #define nt_service_is_stopping() 0 +#define nt_service_parse_options(a, b, c) (0) +#define nt_service_set_state(s) STMT_NIL #endif /* defined(NT_SERVICE) */ #endif /* !defined(TOR_NTMAIN_H) */ - |