summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-03-29 10:48:29 +0200
committerGravatar Nikias Bassen2022-03-29 10:48:29 +0200
commita3622dea4e55c5ced317adc489fc2d3f5f6e8f74 (patch)
treefcca3ec1e6ad543dc3a142368000365bad532389 /src
parent63fcc657c68310ce54978446d4072ca03a78b852 (diff)
downloadlibimobiledevice-a3622dea4e55c5ced317adc489fc2d3f5f6e8f74.tar.gz
libimobiledevice-a3622dea4e55c5ced317adc489fc2d3f5f6e8f74.tar.bz2
reverse_proxy: Make sure ECONNRESET and ETIMEDOUT are defined
Diffstat (limited to 'src')
-rw-r--r--src/reverse_proxy.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/reverse_proxy.c b/src/reverse_proxy.c
index fd6f1a2..ae8e9f5 100644
--- a/src/reverse_proxy.c
+++ b/src/reverse_proxy.c
@@ -31,12 +31,18 @@
#include <libimobiledevice-glue/thread.h>
#include <libimobiledevice-glue/socket.h>
-
#include "reverse_proxy.h"
#include "lockdown.h"
#include "common/debug.h"
#include "endianness.h"
+#ifndef ECONNRESET
+#define ECONNRESET 108
+#endif
+#ifndef ETIMEDOUT
+#define ETIMEDOUT 138
+#endif
+
#define CTRL_PORT 1082
#define CTRLCMD "BeginCtrl"
#define HELLOCTRLCMD "HelloCtrl"