mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
If curl does not have sockopts, do not try to compile the json_rpc_call_sockopt_cb function, making it possible to build against older curl libraries.
This commit is contained in:
parent
d88ed35848
commit
5d845f2fb1
2
util.c
2
util.c
@ -224,6 +224,7 @@ out:
|
||||
return ptrlen;
|
||||
}
|
||||
|
||||
#ifdef CURL_HAS_SOCKOPT
|
||||
int json_rpc_call_sockopt_cb(void *userdata, curl_socket_t fd, curlsocktype purpose)
|
||||
{
|
||||
int keepalive = 1;
|
||||
@ -270,6 +271,7 @@ int json_rpc_call_sockopt_cb(void *userdata, curl_socket_t fd, curlsocktype purp
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
json_t *json_rpc_call(CURL *curl, const char *url,
|
||||
const char *userpass, const char *rpc_req,
|
||||
|
Loading…
x
Reference in New Issue
Block a user