diff options
author | Nikias Bassen | 2022-03-29 10:48:29 +0200 |
---|---|---|
committer | Nikias Bassen | 2022-03-29 10:48:29 +0200 |
commit | a3622dea4e55c5ced317adc489fc2d3f5f6e8f74 (patch) | |
tree | fcca3ec1e6ad543dc3a142368000365bad532389 | |
parent | 63fcc657c68310ce54978446d4072ca03a78b852 (diff) | |
download | libimobiledevice-a3622dea4e55c5ced317adc489fc2d3f5f6e8f74.tar.gz libimobiledevice-a3622dea4e55c5ced317adc489fc2d3f5f6e8f74.tar.bz2 |
reverse_proxy: Make sure ECONNRESET and ETIMEDOUT are defined
-rw-r--r-- | src/reverse_proxy.c | 8 |
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" |