summaryrefslogtreecommitdiff
path: root/src/helper/replacements.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/replacements.h')
-rw-r--r--src/helper/replacements.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index a1500d79..b6165085 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -84,7 +84,6 @@ struct timeval {
/* gettimeofday() */
#ifndef HAVE_GETTIMEOFDAY
-
#ifdef _WIN32
struct timezone {
int tz_minuteswest;
@@ -161,6 +160,12 @@ void usleep(int us);
#include <windows.h>
#include <time.h>
+/* win32 systems do not support ETIMEDOUT */
+
+#ifndef ETIMEDOUT
+#define ETIMEDOUT WSAETIMEDOUT
+#endif
+
#if IS_MINGW == 1
static __inline unsigned char inb(unsigned short int port)
{