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),