summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-01-05 03:38:27 +0100
committerGravatar Nikias Bassen2020-01-05 03:38:27 +0100
commitdb4dec661d9a9ae0886fb1cf9a2ffa7be3d34184 (patch)
tree24cff9c76f4199e094250322e663faac7c1a8672
parent49d2c6d8051c84ec0ba6db1943a1b7369a0f2741 (diff)
downloadlibimobiledevice-db4dec661d9a9ae0886fb1cf9a2ffa7be3d34184.tar.gz
libimobiledevice-db4dec661d9a9ae0886fb1cf9a2ffa7be3d34184.tar.bz2
Define ETIMEDOUT if required
-rw-r--r--common/socket.c3
-rw-r--r--src/idevice.c4
2 files changed, 7 insertions, 0 deletions
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 <windows.h>
#endif
+#ifndef ETIMEDOUT
+#define ETIMEDOUT 138
+#endif
+
#ifdef HAVE_OPENSSL
#if OPENSSL_VERSION_NUMBER < 0x10100000L || \