diff options
| author | 2022-03-29 10:56:56 +0200 | |
|---|---|---|
| committer | 2022-03-29 10:56:56 +0200 | |
| commit | 2c2ea7066a52f513dbb12b37da5a53642ac222f8 (patch) | |
| tree | d09e8a0f2ea287e6530fc701a58465b55b3806bb | |
| parent | a3622dea4e55c5ced317adc489fc2d3f5f6e8f74 (diff) | |
| download | libimobiledevice-2c2ea7066a52f513dbb12b37da5a53642ac222f8.tar.gz libimobiledevice-2c2ea7066a52f513dbb12b37da5a53642ac222f8.tar.bz2 | |
reverse_proxy: Add asprintf.h include to make sure vasprintf is available on Windows
| -rw-r--r-- | include/asprintf.h | 2 | ||||
| -rw-r--r-- | src/reverse_proxy.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/asprintf.h b/include/asprintf.h index ce26aed..3ed35be 100644 --- a/include/asprintf.h +++ b/include/asprintf.h | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | #include <config.h> | 5 | #include <config.h> |
| 6 | #endif | 6 | #endif |
| 7 | 7 | ||
| 8 | #include <stdio.h> | ||
| 9 | |||
| 8 | #ifndef HAVE_VASPRINTF | 10 | #ifndef HAVE_VASPRINTF |
| 9 | static inline int vasprintf(char **PTR, const char *TEMPLATE, va_list AP) | 11 | static inline int vasprintf(char **PTR, const char *TEMPLATE, va_list AP) |
| 10 | { | 12 | { |
diff --git a/src/reverse_proxy.c b/src/reverse_proxy.c index ae8e9f5..3f0a839 100644 --- a/src/reverse_proxy.c +++ b/src/reverse_proxy.c | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | #include "lockdown.h" | 35 | #include "lockdown.h" |
| 36 | #include "common/debug.h" | 36 | #include "common/debug.h" |
| 37 | #include "endianness.h" | 37 | #include "endianness.h" |
| 38 | #include "asprintf.h" | ||
| 38 | 39 | ||
| 39 | #ifndef ECONNRESET | 40 | #ifndef ECONNRESET |
| 40 | #define ECONNRESET 108 | 41 | #define ECONNRESET 108 |
