1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[curl] Compilation fix. Refs #304

This commit is contained in:
Witold Filipczyk 2024-05-27 11:55:13 +02:00
parent 1f0ee66aec
commit a198d2da3c
2 changed files with 6 additions and 1 deletions

View File

@ -624,7 +624,7 @@ again:
abort_connection(conn, connection_state(S_OK));
}
static void
void
ftp_curl_handle_error(struct connection *conn, CURLcode res)
{
if (res == CURLE_OK) {

View File

@ -1,6 +1,10 @@
#ifndef EL__PROTOCOL_CURL_FTPES_H
#define EL__PROTOCOL_CURL_FTPES_H
#ifdef CONFIG_LIBCURL
#include <curl/curl.h>
#endif
#include "main/module.h"
#include "protocol/protocol.h"
@ -12,6 +16,7 @@ extern struct module ftpes_protocol_module;
#if defined(CONFIG_FTP) && defined(CONFIG_LIBCURL)
extern protocol_handler_T ftpes_protocol_handler;
void ftp_curl_handle_error(struct connection *conn, CURLcode res);
#else
#define ftpes_protocol_handler NULL
#endif