Skip to content

Commit

Permalink
Include winsock2.h in Windows errno header
Browse files Browse the repository at this point in the history
Make sure the required Windows defines are always available.
  • Loading branch information
CendioOssman committed Oct 20, 2024
1 parent 96067c2 commit 00cbb85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/os/winerrno.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00cbb85

Please sign in to comment.