]> source.dussan.org Git - tigervnc.git/commitdiff
Include winsock2.h in Windows errno header
authorPierre Ossman <ossman@cendio.se>
Tue, 10 Sep 2024 05:38:50 +0000 (07:38 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 6 Nov 2024 20:18:54 +0000 (21:18 +0100)
Make sure the required Windows defines are always available.

common/os/winerrno.h

index 052d4de2b48265d87f17650b2a9b4fba82a0f388..a81fdc944be4ab92f42d045f1671e5ee415d081e 100644 (file)
@@ -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 <winsock2.h>
+
 #undef EWOULDBLOCK
 #define EWOULDBLOCK WSAEWOULDBLOCK
 #undef EINPROGRESS