From ccd8c7186d324d4676b825f7953f05d477fcc6d8 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 6 Sep 2019 23:28:04 +0200 Subject: [PATCH] fixed compilation without RS_JSONAPI --- libretroshare/src/rsserver/rsinit.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 231df6bf6..54108c7cf 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -115,7 +115,10 @@ RsLoginHelper* rsLoginHelper = nullptr; RsAccounts* rsAccounts = nullptr; RsConfigOptions::RsConfigOptions() - : jsonApiPort(JsonApiServer::DEFAULT_PORT), + : +#ifdef RS_JSONAPI + jsonApiPort(JsonApiServer::DEFAULT_PORT), +#endif jsonApiBindAddress("127.0.0.1"), autoLogin(false), forcedPort(0),