From 1c4c80dd35b491645f424d89ba4d3ce6604e0334 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Mon, 5 Sep 2011 11:31:18 +0000 Subject: [PATCH] [GB.NET.CURL] * BUG: Add missing error opcodes in old curl libraries. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CNet.c:136: error: ‘CURLE_FTP_PRET_FAILED’ undeclared here (not in a function) CNet.c:139: error: ‘CURLE_FTP_BAD_FILE_LIST’ undeclared here (not in a function) CNet.c:140: error: ‘CURLE_CHUNK_FAILED’ undeclared here (not in a function) make[4]: *** [CNet.lo] Errore 1 git-svn-id: svn://localhost/gambas/trunk@4089 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.net.curl/src/CNet.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gb.net.curl/src/CNet.c b/gb.net.curl/src/CNet.c index 26ea17411..9374277f2 100644 --- a/gb.net.curl/src/CNet.c +++ b/gb.net.curl/src/CNet.c @@ -30,6 +30,17 @@ #define GBCURL(x) (-(1000+x)) +/* Fix building with old libcurl version */ +#ifndef CURLE_FTP_PRET_FAILED +#define CURLE_FTP_PRET_FAILED 84 +#endif +#ifndef CURLE_FTP_BAD_FILE_LIST +#define CURLE_FTP_BAD_FILE_LIST 87 +#endif +#ifndef CURLE_CHUNK_FAILED 88 +#endif +/* */ + GB_DESC CNetDesc[] = { GB_DECLARE("Net", 0), GB_VIRTUAL_CLASS(),