1
This commit is contained in:
1 parent
5816fbea70
commit
2beb945bb0
3 files changed
+10
-5
No files matched your search
@@ -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
@@ -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__
|
||||
|
||||
Reference in new issue
Block a user