summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"