Skip to content

Commit f8b69fd

Browse files
authored
Merge pull request #23 from ps2dev/fix/mingw32-setsockopt-cast
Fix mingw32 build: cast setsockopt optval to const char *
2 parents 9b1e3cc + 774dfec commit f8b69fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ps2link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
// ~200 ms stall per read() syscall, making fread() ~400x slower than read().
5959
if (request_socket > 0) {
6060
int one = 1;
61-
setsockopt(request_socket, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
61+
setsockopt(request_socket, IPPROTO_TCP, TCP_NODELAY, (const char *)&one, sizeof(one));
6262
}
6363

6464
// Create the request thread.

0 commit comments

Comments
 (0)