mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
C++11 mode build fix.
This commit is contained in:
parent
b08ca49580
commit
402d99ea8d
2 changed files with 6 additions and 6 deletions
|
@ -65,7 +65,7 @@ else
|
||||||
STRIP=strip
|
STRIP=strip
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS=$(CFLAGS) -fno-rtti -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++
|
CXXFLAGS=$(CFLAGS) -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++
|
||||||
|
|
||||||
all: one
|
all: one
|
||||||
|
|
||||||
|
|
|
@ -1119,13 +1119,13 @@ public:
|
||||||
for(std::vector<InetAddress>::iterator ip(n.managedIps.begin());ip!=n.managedIps.end();++ip) {
|
for(std::vector<InetAddress>::iterator ip(n.managedIps.begin());ip!=n.managedIps.end();++ip) {
|
||||||
if (std::find(newManagedIps.begin(),newManagedIps.end(),*ip) == newManagedIps.end()) {
|
if (std::find(newManagedIps.begin(),newManagedIps.end(),*ip) == newManagedIps.end()) {
|
||||||
if (!n.tap->removeIp(*ip))
|
if (!n.tap->removeIp(*ip))
|
||||||
fprintf(stderr,"ERROR: unable to remove ip address %s"ZT_EOL_S, ip->toString().c_str());
|
fprintf(stderr,"ERROR: unable to remove ip address %s" ZT_EOL_S, ip->toString().c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(std::vector<InetAddress>::iterator ip(newManagedIps.begin());ip!=newManagedIps.end();++ip) {
|
for(std::vector<InetAddress>::iterator ip(newManagedIps.begin());ip!=newManagedIps.end();++ip) {
|
||||||
if (std::find(n.managedIps.begin(),n.managedIps.end(),*ip) == n.managedIps.end()) {
|
if (std::find(n.managedIps.begin(),n.managedIps.end(),*ip) == n.managedIps.end()) {
|
||||||
if (!n.tap->addIp(*ip))
|
if (!n.tap->addIp(*ip))
|
||||||
fprintf(stderr,"ERROR: unable to add ip address %s"ZT_EOL_S, ip->toString().c_str());
|
fprintf(stderr,"ERROR: unable to add ip address %s" ZT_EOL_S, ip->toString().c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1468,11 +1468,11 @@ public:
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
FILE *tapFailLog = fopen((_homePath + ZT_PATH_SEPARATOR_S"port_error_log.txt").c_str(),"a");
|
FILE *tapFailLog = fopen((_homePath + ZT_PATH_SEPARATOR_S"port_error_log.txt").c_str(),"a");
|
||||||
if (tapFailLog) {
|
if (tapFailLog) {
|
||||||
fprintf(tapFailLog,"%.16llx: %s"ZT_EOL_S,(unsigned long long)nwid,exc.what());
|
fprintf(tapFailLog,"%.16llx: %s" ZT_EOL_S,(unsigned long long)nwid,exc.what());
|
||||||
fclose(tapFailLog);
|
fclose(tapFailLog);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
fprintf(stderr,"ERROR: unable to configure virtual network port: %s"ZT_EOL_S,exc.what());
|
fprintf(stderr,"ERROR: unable to configure virtual network port: %s" ZT_EOL_S,exc.what());
|
||||||
#endif
|
#endif
|
||||||
_nets.erase(nwid);
|
_nets.erase(nwid);
|
||||||
return -999;
|
return -999;
|
||||||
|
@ -1531,7 +1531,7 @@ public:
|
||||||
|
|
||||||
case ZT_EVENT_TRACE: {
|
case ZT_EVENT_TRACE: {
|
||||||
if (metaData) {
|
if (metaData) {
|
||||||
::fprintf(stderr,"%s"ZT_EOL_S,(const char *)metaData);
|
::fprintf(stderr,"%s" ZT_EOL_S,(const char *)metaData);
|
||||||
::fflush(stderr);
|
::fflush(stderr);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue