mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-01 02:27:09 +03:00
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:
1 parent
f3133e87f6
commit
079fbbcaba
5 files changed
+38
-24
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user