From ed07250fef4e258d0d37d1c4e520db6d6c1e6fdb Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 10 Sep 2024 07:38:50 +0200 Subject: [PATCH] Include winsock2.h in Windows errno header Make sure the required Windows defines are always available. --- common/os/winerrno.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/os/winerrno.h b/common/os/winerrno.h index 052d4de2..a81fdc94 100644 --- a/common/os/winerrno.h +++ b/common/os/winerrno.h @@ -5,6 +5,8 @@ cat /usr/i686-pc-mingw32/sys-root/mingw/include/winerror.h \ | egrep -v 'EINTR|EBADF|EACCES|EFAULT|EINVAL|EMFILE|_QOS|PROVIDER|PROCTABLE' */ +#include + #undef EWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK #undef EINPROGRESS -- 2.39.5