From: Jaroslav Kysela Date: Wed, 16 Apr 2014 15:32:04 +0000 (+0200) Subject: http client: Fix some compilation errors X-Git-Tag: v4.1~2115^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35afb618e65861c14f5b90866bf040ed5e172fd1;p=thirdparty%2Ftvheadend.git http client: Fix some compilation errors --- diff --git a/src/httpc.c b/src/httpc.c index a1ffe3eec..52226be01 100644 --- a/src/httpc.c +++ b/src/httpc.c @@ -30,6 +30,10 @@ #include #include +#ifndef SSL_OP_NO_COMPRESSION +#define SSL_OP_NO_COMPRESSION 0 +#endif + #if ENABLE_TRACE #define HTTPCLIENT_TESTSUITE 1 #endif @@ -1344,7 +1348,7 @@ http_client_testsuite_conn_closed( http_client_t *hc, int result ) static int http_client_testsuite_data_complete( http_client_t *hc ) { - fprintf(stderr, "HTTPCTS: Data Complete (code=%i, data=%p, data_size=%li)\n", + fprintf(stderr, "HTTPCTS: Data Complete (code=%i, data=%p, data_size=%zi)\n", hc->hc_code, hc->hc_data, hc->hc_data_size); return 0; } @@ -1352,7 +1356,7 @@ http_client_testsuite_data_complete( http_client_t *hc ) static int http_client_testsuite_data_received( http_client_t *hc, void *data, size_t len ) { - fprintf(stderr, "HTTPCTS: Data received (len=%li)\n", len); + fprintf(stderr, "HTTPCTS: Data received (len=%zi)\n", len); /* check, if the data memory area is OK */ memset(data, 0xa5, len); return 0; @@ -1501,8 +1505,12 @@ static struct strtab ERRNO_tab[] = { { "EKEYREJECTED", EKEYREJECTED }, { "EOWNERDEAD", EOWNERDEAD }, { "ENOTRECOVERABLE", ENOTRECOVERABLE }, +#ifdef ERFKILL { "ERFKILL", ERFKILL }, +#endif +#ifdef EHWPOISON { "EHWPOISON", EHWPOISON }, +#endif }; void