summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-03-29 10:56:56 +0200
committerGravatar Nikias Bassen2022-03-29 10:56:56 +0200
commit2c2ea7066a52f513dbb12b37da5a53642ac222f8 (patch)
treed09e8a0f2ea287e6530fc701a58465b55b3806bb
parenta3622dea4e55c5ced317adc489fc2d3f5f6e8f74 (diff)
downloadlibimobiledevice-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.h2
-rw-r--r--src/reverse_proxy.c1
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 @@
#include <config.h>
#endif
+#include <stdio.h>
+
#ifndef HAVE_VASPRINTF
static inline int vasprintf(char **PTR, const char *TEMPLATE, va_list AP)
{
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 @@
#include "lockdown.h"
#include "common/debug.h"
#include "endianness.h"
+#include "asprintf.h"
#ifndef ECONNRESET
#define ECONNRESET 108