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:
Evgeny committed 2026-02-15 02:56:08 +03:00
1 parent 0688efcd0e
commit 1bd4bf5d11
3 files changed
+6 -4

No files matched your search

+1 -3
View File
@@ -4,9 +4,7 @@
#include <stdint.h>
#include <stddef.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "../lib/platform_compat.h"
#ifdef __cplusplus
extern "C" {