diff options
author | teor <teor@torproject.org> | 2019-11-14 16:27:06 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-11-14 16:27:06 +1000 |
commit | 0df8bcfb6fc31fabccf480f5a153174360dffc7a (patch) | |
tree | 343922cd888724388f7d126db68521e840cf1cf5 /src/feature | |
parent | 88c2a23c4b3954b321d2247ca3d66cff68e1912d (diff) | |
download | tor-0df8bcfb6fc31fabccf480f5a153174360dffc7a.tar.gz tor-0df8bcfb6fc31fabccf480f5a153174360dffc7a.zip |
relay: Disable relay_sys when the relay module is disabled
Closes ticket 32245.
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/dirauth/dirauth_sys.h | 4 | ||||
-rw-r--r-- | src/feature/relay/relay_sys.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_sys.h b/src/feature/dirauth/dirauth_sys.h index 2d5a0cb3e7..86c8d8ba3e 100644 --- a/src/feature/dirauth/dirauth_sys.h +++ b/src/feature/dirauth/dirauth_sys.h @@ -12,6 +12,10 @@ #ifndef DIRAUTH_SYS_H #define DIRAUTH_SYS_H +#ifdef HAVE_MODULE_DIRAUTH + extern const struct subsys_fns_t sys_dirauth; +#endif + #endif /* !defined(DIRAUTH_SYS_H) */ diff --git a/src/feature/relay/relay_sys.h b/src/feature/relay/relay_sys.h index 32e21d90d8..aa387369b5 100644 --- a/src/feature/relay/relay_sys.h +++ b/src/feature/relay/relay_sys.h @@ -12,6 +12,10 @@ #ifndef TOR_FEATURE_RELAY_RELAY_SYS_H #define TOR_FEATURE_RELAY_RELAY_SYS_H +#ifdef HAVE_MODULE_RELAY + extern const struct subsys_fns_t sys_relay; +#endif + #endif /* !defined(TOR_FEATURE_RELAY_RELAY_SYS_H) */ |