--- a/common/os/winerrno.h
+++ b/common/os/winerrno.h
@@ -4,6 +4,8 @@
  | awk '/#define WSAE.*WSABASE/{gsub("WSA", ""); print "#undef " $2 "\n#define " $2 " WSA" $2}' \
  | egrep -v 'EINTR|EBADF|EACCES|EFAULT|EINVAL|EMFILE|_QOS|PROVIDER|PROCTABLE'
 */
+
+#include <winerror.h>
 
 #undef EWOULDBLOCK
 #define EWOULDBLOCK WSAEWOULDBLOCK
