Fix Windows build errors: config_parser.h, poll(), localtime()
- Replace sys/socket.h with platform_compat.h in config_parser.h - Add #include <poll.h> for Windows in platform_compat.h - Fix localtime() type mismatch: cast tv.tv_sec to time_t - All 22 tests pass on Linux
This commit is contained in:
1 parent
0688efcd0e
commit
1bd4bf5d11
3 files changed
+6
-4
No files matched your search
@@ -103,6 +103,9 @@
|
||||
|
||||
// nanosleep already defined in pthread_time.h on MSYS2
|
||||
|
||||
// poll is in ws2tcpip.h or poll.h on MSYS2
|
||||
#include <poll.h>
|
||||
|
||||
#else
|
||||
// POSIX - include standard headers
|
||||
#include <sys/time.h>
|
||||
|
||||
Reference in new issue
Block a user