mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-28 23:10:02 +00:00
updates for macOS for inja support
This commit is contained in:
parent
b65c1ed3a0
commit
c4df88354b
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user