git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90996
13f79535-47bb-0310-9956-
ffa450edef68
}
if (szPath[0] == '/' && szPath[1] == '/') {
- char buf[_MAX_PATH];
+ char buf[MAX_PATH];
char *s;
int nSlashes = 0;
*/
#define _WIN32_WINNT 0x0400
+/* If it isn't too late, prevent windows.h from including the original
+ * winsock.h header, so that we can still include winsock2.h
+ */
+#if !defined(_WINSOCKAPI_) || !defined(_WINDOWS_)
+#define _WINSOCKAPI_
#include <windows.h>
#include <winsock2.h>
#include <mswsock.h>
+#else
+#include <windows.h>
+#endif
#include <process.h>
#include <malloc.h>
#include <io.h>