fix windows compiling with mingw (#848)

This commit is contained in:
Malizia R 2020-07-20 19:34:52 -03:00 committed by GitHub
parent 5a3c324138
commit 43aeabbbee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@
#include "sockcompat.h" #include "sockcompat.h"
#ifdef _WIN32 #ifdef _WIN32
#include <errno.h>
static int _wsaErrorToErrno(int err) { static int _wsaErrorToErrno(int err) {
switch (err) { switch (err) {
case WSAEWOULDBLOCK: case WSAEWOULDBLOCK: