coap_io.c: Cleanup MinGW builds

Move the MinGW #if tests to after where mswsock.h is included.

Tidy up documentation.

Tested against MSYS2 UCRT64, CLANG64, MINGW32 and MINGW64 on Windows 11.
Fixed a couple of minor build issues found.
This commit is contained in:
Jon Shallow committed 2025-11-25 16:12:20 +00:00
1 parent f3133e87f6
commit 079fbbcaba
5 files changed
+38 -24

No files matched your search

+1 -1
View File
@@ -2603,7 +2603,7 @@ main(int argc, char **argv) {
if (coap_fd != -1) {
/* if coap_fd is -1, then epoll is not supported within libcoap */
FD_ZERO(&m_readfds);
FD_SET(coap_fd, &m_readfds);
FD_SET((coap_fd_t)coap_fd, &m_readfds);
nfds = coap_fd + 1;
}