diff --git a/src/include/port/win32/sys/socket.h b/src/include/port/win32/sys/socket.h
index d594901f8c08b1d3edeade110556d1a10a1e75f7..ac64df8dd38c0b1c3e416725726b55e798ad8a50 100644
--- a/src/include/port/win32/sys/socket.h
+++ b/src/include/port/win32/sys/socket.h
@@ -5,8 +5,8 @@
  *
  * Note: Don't include <wingdi.h> directly.  It causes compile errors.
  */
-#include <ws2tcpip.h>
 #include <winsock2.h>
+#include <ws2tcpip.h>
 #undef ERROR
 #undef small