This commit is contained in:
jeka committed 2026-03-08 17:31:56 +03:00
1 parent 5816fbea70
commit 2beb945bb0
3 files changed
+10 -5

No files matched your search

+3
View File
@@ -134,6 +134,8 @@
#include <fcntl.h>
#include <unistd.h>
#include <poll.h>
#define utun_gettimeofday(A,B) gettimeofday(A,B)
#endif
#include <stdint.h>
@@ -146,4 +148,5 @@ int random_bytes(uint8_t *buffer, size_t len);
// Returns IPv4 address in network byte order, 0 on error
uint32_t get_default_route_ip(void);
#endif // PLATFORM_COMPAT_H
+6 -5
View File
@@ -12,11 +12,12 @@
#include <limits.h>
#include <pthread.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
#include "../lib/platform_compat.h"
//#ifdef _WIN32
//#include <windows.h>
//#else
//#include <sys/time.h>
//#endif
// Platform-specific includes
#ifdef __linux__