nlibcurl: Fix compile error

This commit is contained in:
Exzap 2024-04-13 11:03:02 +02:00
parent 9c28a728e4
commit 6ea42d958c

View File

@ -386,7 +386,12 @@ uint32 SendOrderToWorker(CURL_t* curl, QueueOrder order, uint32 arg1 = 0)
return result;
}
int curl_closesocket(void *clientp, curl_socket_t item);
static int curl_closesocket(void *clientp, curl_socket_t item)
{
nsysnet_notifyCloseSharedSocket((SOCKET)item);
closesocket(item);
return 0;
}
void _curl_set_default_parameters(CURL_t* curl)
{
@ -843,13 +848,6 @@ void export_curl_share_cleanup(PPCInterpreter_t* hCPU)
osLib_returnFromFunction(hCPU, 0);
}
static int curl_closesocket(void *clientp, curl_socket_t item)
{
nsysnet_notifyCloseSharedSocket((SOCKET)item);
closesocket(item);
return 0;
}
CURL_t* curl_easy_init()
{
if (g_nlibcurl.initialized == 0)