mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 22:07:49 +00:00
Build fix for Windows setsockopt().
This commit is contained in:
parent
f764cf8d31
commit
eae130467b
@ -245,14 +245,14 @@ SocketManager::SocketManager(
|
|||||||
int bs = 1048576;
|
int bs = 1048576;
|
||||||
while (bs >= 65536) {
|
while (bs >= 65536) {
|
||||||
int tmpbs = bs;
|
int tmpbs = bs;
|
||||||
if (setsockopt(s,SOL_SOCKET,SO_RCVBUF,&tmpbs,sizeof(tmpbs)) == 0)
|
if (setsockopt(s,SOL_SOCKET,SO_RCVBUF,(const char *)&tmpbs,sizeof(tmpbs)) == 0)
|
||||||
break;
|
break;
|
||||||
bs -= 16384;
|
bs -= 16384;
|
||||||
}
|
}
|
||||||
bs = 1048576;
|
bs = 1048576;
|
||||||
while (bs >= 65536) {
|
while (bs >= 65536) {
|
||||||
int tmpbs = bs;
|
int tmpbs = bs;
|
||||||
if (setsockopt(s,SOL_SOCKET,SO_SNDBUF,&tmpbs,sizeof(tmpbs)) == 0)
|
if (setsockopt(s,SOL_SOCKET,SO_SNDBUF,(const char *)&tmpbs,sizeof(tmpbs)) == 0)
|
||||||
break;
|
break;
|
||||||
bs -= 16384;
|
bs -= 16384;
|
||||||
}
|
}
|
||||||
@ -319,14 +319,14 @@ SocketManager::SocketManager(
|
|||||||
int bs = 1048576;
|
int bs = 1048576;
|
||||||
while (bs >= 65536) {
|
while (bs >= 65536) {
|
||||||
int tmpbs = bs;
|
int tmpbs = bs;
|
||||||
if (setsockopt(s,SOL_SOCKET,SO_RCVBUF,&tmpbs,sizeof(tmpbs)) == 0)
|
if (setsockopt(s,SOL_SOCKET,SO_RCVBUF,(const char *)&tmpbs,sizeof(tmpbs)) == 0)
|
||||||
break;
|
break;
|
||||||
bs -= 16384;
|
bs -= 16384;
|
||||||
}
|
}
|
||||||
bs = 1048576;
|
bs = 1048576;
|
||||||
while (bs >= 65536) {
|
while (bs >= 65536) {
|
||||||
int tmpbs = bs;
|
int tmpbs = bs;
|
||||||
if (setsockopt(s,SOL_SOCKET,SO_SNDBUF,&tmpbs,sizeof(tmpbs)) == 0)
|
if (setsockopt(s,SOL_SOCKET,SO_SNDBUF,(const char *)&tmpbs,sizeof(tmpbs)) == 0)
|
||||||
break;
|
break;
|
||||||
bs -= 16384;
|
bs -= 16384;
|
||||||
}
|
}
|
||||||
|
@ -244,7 +244,7 @@
|
|||||||
<AdditionalIncludeDirectories>$(SolutionDir)\ext\bin\libcrypto\include</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(SolutionDir)\ext\bin\libcrypto\include</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>ZT_OFFICIAL_RELEASE;ZT_AUTO_UPDATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>ZT_OFFICIAL_RELEASE;ZT_AUTO_UPDATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
|
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
|
||||||
<StringPooling>true</StringPooling>
|
<StringPooling>true</StringPooling>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
Loading…
Reference in New Issue
Block a user