From bd78baf668eca011257f05fef8334e0967500456 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 22 Nov 2010 23:09:07 +0000 Subject: [PATCH] Windows: Include winsock2.h before ws2tcpip.h Before we can include ws2tcpip.h, we must have already included winsock2.h. The latest SDK does this by including winsock2 within the ws2tcpip header, but the older SDKs do not, and fail to build. --- lib/roken/roken.h.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 0c0dd2003..7d5d65794 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -54,7 +54,8 @@ #ifdef HAVE_WINSOCK /* Declarations for Microsoft Windows */ -#include +#include +#include /* * error codes for inet_ntop/inet_pton