From: Pierre Ossman Date: Tue, 10 Sep 2024 05:38:50 +0000 (+0200) Subject: Include winsock2.h in Windows errno header X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed07250fef4e258d0d37d1c4e520db6d6c1e6fdb;p=tigervnc.git Include winsock2.h in Windows errno header Make sure the required Windows defines are always available. --- 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