}
/* separate function to allow libcurl to mark a "faked" close */
-static void mark_sclose(curl_socket_t sockfd, int line, const char *source)
+void curl_mark_sclose(curl_socket_t sockfd, int line, const char *source)
{
const char *fmt = (sizeof(curl_socket_t) == sizeof(int)) ?
"FD %s:%d sclose(%d)\n":
int curl_sclose(curl_socket_t sockfd, int line, const char *source)
{
int res = sclose(sockfd);
- mark_sclose(sockfd, line, source);
+ curl_mark_sclose(sockfd, line, source);
return res;
}