From ad443ecaa4e5f1b1a79a98f8fa379b10b7d0561c Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 6 Sep 2019 23:40:04 +0200 Subject: [PATCH] fixed compilation without RS_JSONAPI --- libretroshare/src/rsserver/rsinit.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 54108c7cf..bc2254b64 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -118,8 +118,8 @@ RsConfigOptions::RsConfigOptions() : #ifdef RS_JSONAPI jsonApiPort(JsonApiServer::DEFAULT_PORT), -#endif jsonApiBindAddress("127.0.0.1"), +#endif autoLogin(false), forcedPort(0), udpListenerOnly(false), @@ -131,7 +131,13 @@ RsConfigOptions::RsConfigOptions() struct RsInitConfig { - RsInitConfig() : jsonApiPort(JsonApiServer::DEFAULT_PORT), jsonApiBindAddress("127.0.0.1") {} + RsInitConfig() + : +#ifdef RS_JSONAPI + jsonApiPort(JsonApiServer::DEFAULT_PORT), + jsonApiBindAddress("127.0.0.1") +#endif + {} RsFileHash main_executable_hash;