Browse Source

updates for macOS for inja support

Grant Limberg 3 years ago
parent
commit
c4df88354b
2 changed files with 3 additions and 3 deletions
  1. 2 2
      make-mac.mk
  2. 1 1
      service/OneService.cpp

+ 2 - 2
make-mac.mk

@@ -2,7 +2,7 @@ CC=clang
 CXX=clang++
 CXX=clang++
 TOPDIR=$(shell PWD)
 TOPDIR=$(shell PWD)
 
 
-INCLUDES=-I$(shell PWD)/zeroidc/target
+INCLUDES=-I$(shell PWD)/zeroidc/target -isystem $(TOPDIR)/ext
 DEFS=
 DEFS=
 LIBS=
 LIBS=
 ARCH_FLAGS=-arch x86_64 -arch arm64 
 ARCH_FLAGS=-arch x86_64 -arch arm64 
@@ -47,7 +47,7 @@ endif
 # Use fast ASM Salsa20/12 for x64 processors
 # Use fast ASM Salsa20/12 for x64 processors
 DEFS+=-DZT_USE_X64_ASM_SALSA2012
 DEFS+=-DZT_USE_X64_ASM_SALSA2012
 CORE_OBJS+=ext/x64-salsa2012-asm/salsa2012.o
 CORE_OBJS+=ext/x64-salsa2012-asm/salsa2012.o
-CXXFLAGS=$(CFLAGS) -std=c++11 -stdlib=libc++
+CXXFLAGS=$(CFLAGS) -std=c++17 -stdlib=libc++
 
 
 # Build miniupnpc and nat-pmp as included libraries -- extra defs are required for these sources
 # Build miniupnpc and nat-pmp as included libraries -- extra defs are required for these sources
 DEFS+=-DMACOSX -DZT_SSO_SUPPORTED -DZT_USE_MINIUPNPC -DMINIUPNP_STATICLIB -D_DARWIN_C_SOURCE -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -DOS_STRING=\"Darwin/15.0.0\" -DMINIUPNPC_VERSION_STRING=\"2.0\" -DUPNP_VERSION_STRING=\"UPnP/1.1\" -DENABLE_STRNATPMPERR
 DEFS+=-DMACOSX -DZT_SSO_SUPPORTED -DZT_USE_MINIUPNPC -DMINIUPNP_STATICLIB -D_DARWIN_C_SOURCE -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE -DOS_STRING=\"Darwin/15.0.0\" -DMINIUPNPC_VERSION_STRING=\"2.0\" -DUPNP_VERSION_STRING=\"UPnP/1.1\" -DENABLE_STRNATPMPERR

+ 1 - 1
service/OneService.cpp

@@ -369,7 +369,7 @@ public:
 #if ZT_SSO_ENABLED
 #if ZT_SSO_ENABLED
 		if (_idc == nullptr) {
 		if (_idc == nullptr) {
 			fprintf(stderr, "ainfo or idc null\n");
 			fprintf(stderr, "ainfo or idc null\n");
-			return "";
+			return ret;
 		}
 		}
 
 
 		ret = zeroidc::zeroidc_token_exchange(_idc, code);
 		ret = zeroidc::zeroidc_token_exchange(_idc, code);