From 23dec0444e1ace09b0a4f32ec6c37ffb9303f466 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Tue, 11 Sep 2001 03:03:44 +0000 Subject: [PATCH] Fix two win32 bugaboos. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90996 13f79535-47bb-0310-9956-ffa450edef68 --- src/os/win32/os.c | 2 +- src/os/win32/os.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/os/win32/os.c b/src/os/win32/os.c index 29778df2976..f8edde19eb5 100755 --- a/src/os/win32/os.c +++ b/src/os/win32/os.c @@ -85,7 +85,7 @@ API_EXPORT(int) os_stat(const char *szPath, struct stat *pStat) } if (szPath[0] == '/' && szPath[1] == '/') { - char buf[_MAX_PATH]; + char buf[MAX_PATH]; char *s; int nSlashes = 0; diff --git a/src/os/win32/os.h b/src/os/win32/os.h index 239f9f1cda7..0397f94d3c1 100755 --- a/src/os/win32/os.h +++ b/src/os/win32/os.h @@ -69,9 +69,17 @@ */ #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 #include #include +#else +#include +#endif #include #include #include -- 2.47.2