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 Nov 4, 2024
1 parent 07de020 commit bad2f52
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 bad2f52

Please sign in to comment.