Browse Source

Fix Windows cross-build

tags/ethstream-1.3.2
Jim Paris 7 years ago
parent
commit
893debb361
2 changed files with 1 additions and 3 deletions
  1. +1
    -0
      compat-win32.c
  2. +0
    -3
      compat.h

+ 1
- 0
compat-win32.c View File

@@ -2,6 +2,7 @@
#include <stdio.h>
#include "compat.h"
#include <windows.h>
#include "errno.h"

unsigned int sleep(unsigned int seconds)
{


+ 0
- 3
compat.h View File

@@ -5,9 +5,6 @@
unsigned int sleep(unsigned int seconds);
char *compat_strerror(int errnum);
//const char *inet_ntop(int af, void *src, const char *dst, socklen_t cnt);
#define INET_ADDRSTRLEN 16
#define ETIMEDOUT 110
#define ENOTCONN 107
#else
#define compat_strerror strerror
#endif


Loading…
Cancel
Save