fix msvc build again
This commit is contained in:
parent
9e8addbd7d
commit
1b04a2a61e
@ -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…
x
Reference in New Issue
Block a user