mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41: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
|
||||
flags |= SO_REUSEPORT;
|
||||
# endif
|
||||
if (setsockopt(descriptor, SOL_SOCKET, flags, &opt, sizeof(opt))) {
|
||||
if (setsockopt(descriptor, SOL_SOCKET, flags, (const char*)&opt, sizeof(opt))) {
|
||||
closesocket(descriptor);
|
||||
throw std::runtime_error("setsockopt");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue