diff --git a/src/Http.c b/src/Http.c index f3235aa66..30472f88c 100644 --- a/src/Http.c +++ b/src/Http.c @@ -544,7 +544,7 @@ static ReturnCode Http_DownloadData(struct HttpRequest* req, HINTERNET handle) { uint8_t* buffer; uint32_t size, totalRead; DWORD read, avail; - bool success; + BOOL success; http_curProgress = 0; size = req->ContentLength ? req->ContentLength : 1; @@ -726,7 +726,8 @@ static ReturnCode Http_SysDo(struct HttpRequest* req) { res = curl_easy_perform(curl); http_curProgress = 100; - curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &status); + /* non-obsolete is CURLINFO_RESPONSE_CODE */ + curl_easy_getinfo(curl, CURLINFO_HTTP_CODE, &status); req->StatusCode = status; curl_slist_free_all(headers_list); diff --git a/src/Logger.c b/src/Logger.c index 01894a4dc..331fa0b82 100644 --- a/src/Logger.c +++ b/src/Logger.c @@ -20,6 +20,8 @@ /* POSIX can be shared between unix-ish systems */ #ifdef CC_BUILD_POSIX +#include +#include #if defined CC_BUILD_OPENBSD /* OpenBSD doesn't provide ucontext.h */ #elif defined CC_BUILD_LINUX @@ -30,11 +32,6 @@ #else #include #endif -#include -#include -#include -#include -#include #endif @@ -552,6 +549,10 @@ static void Logger_DumpRegisters(void* ctx) { /* OS specific stuff */ #if defined CC_BUILD_LINUX || defined CC_BUILD_SOLARIS +#include +#include +#include + static void Logger_DumpMisc(void* ctx) { static const String memMap = String_FromConst("-- memory map --\n"); String str; char strBuffer[320];