Commit 79e75bfb authored by Max Kellermann's avatar Max Kellermann

net/SocketDescriptor: cast setsockopt() value to "const char *" for Windows

parent 73b15c1b
...@@ -202,7 +202,8 @@ SocketDescriptor::SetOption(int level, int name, ...@@ -202,7 +202,8 @@ SocketDescriptor::SetOption(int level, int name,
{ {
assert(IsDefined()); assert(IsDefined());
return setsockopt(fd, level, name, value, size) == 0; /* on Windows, setsockopt() wants "const char *" */
return setsockopt(fd, level, name, (const char *)value, size) == 0;
} }
#ifdef __linux__ #ifdef __linux__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment