Skip to content

Commit

Permalink
nlibcurl: Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Exzap committed Apr 13, 2024
1 parent 9c28a72 commit 6ea42d9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Cafe/OS/libs/nlibcurl/nlibcurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6ea42d9

Please sign in to comment.