-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Labels
possible-bugA bug not confirmed yetA bug not confirmed yet
Description
Description
I have following action configuration:
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
And trying to build wsServer. It fails because of this:
ws.c:1778:71: error: passing argument 4 of 'setsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
1778 | setsockopt(new_sock, SOL_SOCKET, SO_SNDTIMEO, &time,
| ^~~~~
| |
| struct timeval *I don't know the reason but problematic parameter defined as const char* in mingw headers:
WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
I can bypass this by changing error level to warning, but I think it's good to fix. Other than this wsServer works fine on windows! Thank you!
Metadata
Metadata
Assignees
Labels
possible-bugA bug not confirmed yetA bug not confirmed yet