mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[curl] Compilation fix. Refs #304
This commit is contained in:
parent
1f0ee66aec
commit
a198d2da3c
@ -624,7 +624,7 @@ again:
|
|||||||
abort_connection(conn, connection_state(S_OK));
|
abort_connection(conn, connection_state(S_OK));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
ftp_curl_handle_error(struct connection *conn, CURLcode res)
|
ftp_curl_handle_error(struct connection *conn, CURLcode res)
|
||||||
{
|
{
|
||||||
if (res == CURLE_OK) {
|
if (res == CURLE_OK) {
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#ifndef EL__PROTOCOL_CURL_FTPES_H
|
#ifndef EL__PROTOCOL_CURL_FTPES_H
|
||||||
#define EL__PROTOCOL_CURL_FTPES_H
|
#define EL__PROTOCOL_CURL_FTPES_H
|
||||||
|
|
||||||
|
#ifdef CONFIG_LIBCURL
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "main/module.h"
|
#include "main/module.h"
|
||||||
#include "protocol/protocol.h"
|
#include "protocol/protocol.h"
|
||||||
|
|
||||||
@ -12,6 +16,7 @@ extern struct module ftpes_protocol_module;
|
|||||||
|
|
||||||
#if defined(CONFIG_FTP) && defined(CONFIG_LIBCURL)
|
#if defined(CONFIG_FTP) && defined(CONFIG_LIBCURL)
|
||||||
extern protocol_handler_T ftpes_protocol_handler;
|
extern protocol_handler_T ftpes_protocol_handler;
|
||||||
|
void ftp_curl_handle_error(struct connection *conn, CURLcode res);
|
||||||
#else
|
#else
|
||||||
#define ftpes_protocol_handler NULL
|
#define ftpes_protocol_handler NULL
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user