From db4dec661d9a9ae0886fb1cf9a2ffa7be3d34184 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 5 Jan 2020 03:38:27 +0100 Subject: Define ETIMEDOUT if required --- common/socket.c | 3 +++ src/idevice.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/common/socket.c b/common/socket.c index 0ee8105..777b23e 100644 --- a/common/socket.c +++ b/common/socket.c @@ -52,6 +52,9 @@ static int wsa_init = 0; #ifndef ECONNRESET #define ECONNRESET 108 #endif +#ifndef ETIMEDOUT +#define ETIMEDOUT 138 +#endif static int verbose = 0; diff --git a/src/idevice.c b/src/idevice.c index 31a8d3a..6b6a716 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -48,6 +48,10 @@ #include #endif +#ifndef ETIMEDOUT +#define ETIMEDOUT 138 +#endif + #ifdef HAVE_OPENSSL #if OPENSSL_VERSION_NUMBER < 0x10100000L || \ -- cgit v1.1-32-gdbae