From 893debb361ccb41d0ff0020b045d8f6d7e802fe7 Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Wed, 13 Jul 2016 15:56:26 -0400 Subject: [PATCH] Fix Windows cross-build --- compat-win32.c | 1 + compat.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/compat-win32.c b/compat-win32.c index 0b4bdc5..8e3643a 100644 --- a/compat-win32.c +++ b/compat-win32.c @@ -2,6 +2,7 @@ #include #include "compat.h" #include +#include "errno.h" unsigned int sleep(unsigned int seconds) { diff --git a/compat.h b/compat.h index eee8d53..acc04b8 100644 --- a/compat.h +++ b/compat.h @@ -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