From c803475c7294bc56cf51f889803491b6b22951f0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 23 Jan 2015 05:11:15 +0100 Subject: [PATCH] (net_http) MSVC buildfix --- net_http.c | 2 +- net_http.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net_http.c b/net_http.c index 8e3de16543..5041520d3f 100644 --- a/net_http.c +++ b/net_http.c @@ -184,7 +184,7 @@ static ssize_t net_http_recv(int fd, bool *error, if (*error) return -1; - bytes = recv(fd, data, maxlen, 0); + bytes = recv(fd, (char*)data, maxlen, 0); if (bytes > 0) return bytes; diff --git a/net_http.h b/net_http.h index 7cba2c32db..94cebeff01 100644 --- a/net_http.h +++ b/net_http.h @@ -18,7 +18,7 @@ #define _NET_HTTP_H #include -#include +#include #include #ifdef __cplusplus