mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
Fix a few compile errors on really ancient systems
This commit is contained in:
parent
990b722e39
commit
47ea32922f
@ -544,7 +544,7 @@ static ReturnCode Http_DownloadData(struct HttpRequest* req, HINTERNET handle) {
|
|||||||
uint8_t* buffer;
|
uint8_t* buffer;
|
||||||
uint32_t size, totalRead;
|
uint32_t size, totalRead;
|
||||||
DWORD read, avail;
|
DWORD read, avail;
|
||||||
bool success;
|
BOOL success;
|
||||||
|
|
||||||
http_curProgress = 0;
|
http_curProgress = 0;
|
||||||
size = req->ContentLength ? req->ContentLength : 1;
|
size = req->ContentLength ? req->ContentLength : 1;
|
||||||
@ -726,7 +726,8 @@ static ReturnCode Http_SysDo(struct HttpRequest* req) {
|
|||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
http_curProgress = 100;
|
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;
|
req->StatusCode = status;
|
||||||
|
|
||||||
curl_slist_free_all(headers_list);
|
curl_slist_free_all(headers_list);
|
||||||
|
11
src/Logger.c
11
src/Logger.c
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
/* POSIX can be shared between unix-ish systems */
|
/* POSIX can be shared between unix-ish systems */
|
||||||
#ifdef CC_BUILD_POSIX
|
#ifdef CC_BUILD_POSIX
|
||||||
|
#include <execinfo.h>
|
||||||
|
#include <signal.h>
|
||||||
#if defined CC_BUILD_OPENBSD
|
#if defined CC_BUILD_OPENBSD
|
||||||
/* OpenBSD doesn't provide ucontext.h */
|
/* OpenBSD doesn't provide ucontext.h */
|
||||||
#elif defined CC_BUILD_LINUX
|
#elif defined CC_BUILD_LINUX
|
||||||
@ -30,11 +32,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
#endif
|
#endif
|
||||||
#include <execinfo.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -552,6 +549,10 @@ static void Logger_DumpRegisters(void* ctx) {
|
|||||||
|
|
||||||
/* OS specific stuff */
|
/* OS specific stuff */
|
||||||
#if defined CC_BUILD_LINUX || defined CC_BUILD_SOLARIS
|
#if defined CC_BUILD_LINUX || defined CC_BUILD_SOLARIS
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
static void Logger_DumpMisc(void* ctx) {
|
static void Logger_DumpMisc(void* ctx) {
|
||||||
static const String memMap = String_FromConst("-- memory map --\n");
|
static const String memMap = String_FromConst("-- memory map --\n");
|
||||||
String str; char strBuffer[320];
|
String str; char strBuffer[320];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user