mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 17:52:54 +03:00
fix coap_socket_strerror() on Windows
This commit is contained in:
1 parent
4c7ce99e09
commit
c3b4be2aab
1 file changed
+2
-1
+2
-1
@@ -2060,7 +2060,8 @@ coap_socket_format_errno(int error) {
|
||||
#ifdef _WIN32
|
||||
const char *
|
||||
coap_socket_strerror(void) {
|
||||
return coap_socket_format_errno(WSAGetLastError());
|
||||
coap_win_error_to_errno();
|
||||
return coap_socket_format_errno(errno);
|
||||
}
|
||||
#else /* _WIN32 */
|
||||
const char *
|
||||
|
||||
Reference in new issue
Block a user