mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
fix msvc build again
This commit is contained in:
parent
9e8addbd7d
commit
1b04a2a61e
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ public:
|
||||||
# ifndef _WIN32
|
# ifndef _WIN32
|
||||||
flags |= SO_REUSEPORT;
|
flags |= SO_REUSEPORT;
|
||||||
# endif
|
# endif
|
||||||
if (setsockopt(descriptor, SOL_SOCKET, flags, &opt, sizeof(opt))) {
|
if (setsockopt(descriptor, SOL_SOCKET, flags, (const char*)&opt, sizeof(opt))) {
|
||||||
closesocket(descriptor);
|
closesocket(descriptor);
|
||||||
throw std::runtime_error("setsockopt");
|
throw std::runtime_error("setsockopt");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue