From: Pierre Joye Date: Sun, 4 Mar 2012 15:08:12 +0000 (+0000) Subject: - bump minimum version, no more XP/2003 X-Git-Tag: php-5.5.0alpha1~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94994104a54a57ee3ff2a143a1f6c43850589378;p=php - bump minimum version, no more XP/2003 --- diff --git a/main/network.c b/main/network.c index 6c7031f983..b8380b00d9 100644 --- a/main/network.c +++ b/main/network.c @@ -25,7 +25,10 @@ #include + + #ifdef PHP_WIN32 +# include # include "win32/inet.h" # define O_RDONLY _O_RDONLY # include "win32/param.h" diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index 13b36fad1c..9efdfdea3e 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -6,8 +6,8 @@ /* Define the minimum supported version */ #undef _WIN32_WINNT #undef NTDDI_VERSION -#define _WIN32_WINNT 0x502 -#define NTDDI_VERSION _WIN32_WIN2K +#define _WIN32_WINNT 0x0600 +#define NTDDI_VERSION 0x06000100 /* Default PHP / PEAR directories */ #define PHP_CONFIG_FILE_PATH (getenv("SystemRoot"))?getenv("SystemRoot"):"" diff --git a/win32/inet.c b/win32/inet.c index b794bcaeb4..d424c8a546 100644 --- a/win32/inet.c +++ b/win32/inet.c @@ -1,11 +1,12 @@ #include "config.w32.h" -#if (_WIN32_WINNT < 0x0600) /* Vista/2k8 have these functions */ #include "php.h" #include #include #include #include "inet.h" +#if (_WIN32_WINNT < 0x0600) /* Vista/2k8 have these functions */ + PHPAPI int inet_pton(int af, const char* src, void* dst) { @@ -76,6 +77,8 @@ PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size) return NULL; } +#endif + int inet_aton(const char *cp, struct in_addr *inp) { inp->s_addr = inet_addr(cp); @@ -85,4 +88,3 @@ int inet_aton(const char *cp, struct in_addr *inp) { return 1; } -#endif diff --git a/win32/inet.h b/win32/inet.h index e96d76b24a..623d114dfd 100644 --- a/win32/inet.h +++ b/win32/inet.h @@ -6,5 +6,6 @@ #if (_WIN32_WINNT <= 0x502) PHPAPI int inet_pton(int af, const char* src, void* dst); PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size); -PHPAPI int inet_aton(const char *cp, struct in_addr *inp); #endif + +PHPAPI int inet_aton(const char *cp, struct in_addr *inp); diff --git a/win32/sendmail.c b/win32/sendmail.c index c4969ad5e3..4b09697e95 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -25,6 +25,7 @@ #ifndef NETWARE #include #include "time.h" +# include #else /* NETWARE */ #include #endif /* NETWARE */