mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
use SOCKET_ERROR_STRING instead of strerror (for WIN32 compat)
This commit is contained in:
@@ -94,7 +94,7 @@ int fcup_request(void *conn_opaque, const char *media_url, const char *client_se
|
||||
if (send_len < 0) {
|
||||
int sock_err = SOCKET_GET_ERROR();
|
||||
logger_log(conn->raop->logger, LOGGER_ERR, "fcup_request: send error %d:%s\n",
|
||||
sock_err, strerror(sock_err));
|
||||
sock_err, SOCKET_ERROR_STRING(sock_err));
|
||||
http_response_destroy(request);
|
||||
/* shut down connection? */
|
||||
return -1;
|
||||
|
||||
@@ -471,7 +471,7 @@ httpd_thread(void *arg)
|
||||
} else {
|
||||
int sock_err = SOCKET_GET_ERROR();
|
||||
logger_log(httpd->logger, LOGGER_ERR, "httpd: recv socket error %d:%s",
|
||||
sock_err, strerror(sock_err));
|
||||
sock_err, SOCKET_ERROR_STRING(sock_err));
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user