summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-03-29 09:45:33 +0200
committerGravatar Nikias Bassen2022-03-29 09:45:33 +0200
commitf6873e5a3b8ebb63fd395e4e01e6bf29fe5655b7 (patch)
treef551089aa3556b9a9fd8be7bae38f2a2fb5ee870 /src
parent8bfa46bdf404af39d32b7cba8f0102b46a6a43e0 (diff)
downloadlibimobiledevice-f6873e5a3b8ebb63fd395e4e01e6bf29fe5655b7.tar.gz
libimobiledevice-f6873e5a3b8ebb63fd395e4e01e6bf29fe5655b7.tar.bz2
idevice: Make sure ECONNREFUSED is defined
Diffstat (limited to 'src')
-rw-r--r--src/idevice.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 64769d2..f984ff4 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -60,10 +60,14 @@
#include <windows.h>
#endif
+#ifndef ECONNREFUSED
+#define ECONNREFUSED 107
+#endif
#ifndef ETIMEDOUT
#define ETIMEDOUT 138
#endif
+
#ifdef HAVE_OPENSSL
#if OPENSSL_VERSION_NUMBER < 0x10100000L || \