Browse Source

1

nodeinfo-routing-update
jeka 4 weeks ago
parent
commit
2beb945bb0
  1. 3
      lib/platform_compat.h
  2. 11
      lib/u_async.c
  3. 1
      src/secure_channel.c

3
lib/platform_compat.h

@ -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

11
lib/u_async.c

@ -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__

1
src/secure_channel.c

@ -38,6 +38,7 @@
#include "../tinycrypt/lib/include/tinycrypt/ecc_platform_specific.h"
#include "../tinycrypt/lib/include/tinycrypt/sha256.h"
#endif
#include "../lib/platform_compat.h"
static uint8_t sc_urandom_seed[8] = {0};
static int sc_urandom_initialized = 0;

Loading…
Cancel
Save