Browse Source

fix compile errors on non-sso platforms

Grant Limberg 3 years ago
parent
commit
f511c9c938
1 changed files with 3 additions and 1 deletions
  1. 3 1
      service/OneService.cpp

+ 3 - 1
service/OneService.cpp

@@ -156,7 +156,9 @@ public:
 	NetworkState() 
 	NetworkState() 
 		: _webPort(9993)
 		: _webPort(9993)
 		, _tap((EthernetTap *)0)
 		, _tap((EthernetTap *)0)
+#if OIDC_SUPPORTED
 		, _idc(nullptr)
 		, _idc(nullptr)
+#endif
 	{
 	{
 		// Real defaults are in network 'up' code in network event handler
 		// Real defaults are in network 'up' code in network event handler
 		_settings.allowManaged = true;
 		_settings.allowManaged = true;
@@ -345,11 +347,11 @@ public:
 	}
 	}
 
 
 	uint64_t getExpiryTime() {
 	uint64_t getExpiryTime() {
+#if OIDC_SUPPORTED
 		if (_idc == nullptr) {
 		if (_idc == nullptr) {
 			fprintf(stderr, "idc is null\n");
 			fprintf(stderr, "idc is null\n");
 			return 0;
 			return 0;
 		}
 		}
-#if OIDC_SUPPORTED
 		return zeroidc::zeroidc_get_exp_time(_idc);
 		return zeroidc::zeroidc_get_exp_time(_idc);
 #else
 #else
 		return 0;
 		return 0;