diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-07-16 22:39:09 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-07-16 22:39:09 +0200 |
commit | 63d6a2b697f5594b03549256661af97b3b6451a3 (patch) | |
tree | 4e4d9ed340bf06fb51a43a7f266ab9aa0ea17d4f /win32 | |
parent | a6812c0c846f2465f62b63c974ef9794701d87cf (diff) | |
download | php-git-63d6a2b697f5594b03549256661af97b3b6451a3.tar.gz |
Remove unused build checks
- yp_get_default_domain was part of ext/yp
- functions checks produce HAVE_function_name symbols. These checks are
currently not used in php-src neither in the extensions out there.
- Removed symbols because they are not used in the code:
- HAVE_GCVT
- HAVE_PUTENV
- HAVE_PUTENV
- HAVE_SETVBUF
- HAVE_TEMPNAM
- HAVE_SIN (sin is also defined in C89 standard)
- HAVE_SETSOCKOPT
- HAVE_LOCKF
- HAVE_ISASCII
- HAVE_YP_GET_DEFAULT_DOMAIN (and other yp extension related unused checks)
- HAVE_LINK
- HAVE_USLEEP is already defined in Windows configuration header
- HAVE_LIBBIND has not been used in php-src for a while anymore
- HAVE_GETHOSTNAME is duplicated in Windows configuration header
Closes GH-4417
Diffstat (limited to 'win32')
-rw-r--r-- | win32/build/config.w32 | 2 | ||||
-rw-r--r-- | win32/build/config.w32.h.in | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/win32/build/config.w32 b/win32/build/config.w32 index e01f38b8f3..31a5eca0e0 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -299,8 +299,6 @@ AC_DEFINE('HAVE_IPV6', main_network_has_ipv6); ARG_ENABLE('fd-setsize', "Set maximum number of sockets for select(2)", "256"); ADD_FLAG("CFLAGS", "/D FD_SETSIZE=" + parseInt(PHP_FD_SETSIZE)); -AC_DEFINE('HAVE_USLEEP', 1); - /* For snapshot builders, where can we find the additional * files that make up the snapshot template? */ ARG_WITH("snapshot-template", "Path to snapshot builder template dir", "no"); diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index 4b4920c509..01b88cb948 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -28,7 +28,6 @@ /* Platform-Specific Configuration. Should not be changed. */ #define PHP_SIGCHILD 0 -#define HAVE_LIBBIND 1 #define HAVE_GETSERVBYNAME 1 #define HAVE_GETSERVBYPORT 1 #define HAVE_GETPROTOBYNAME 1 @@ -40,7 +39,6 @@ #define HAVE_ERRMSG_H 0 #undef HAVE_ADABAS #undef HAVE_SOLID -#undef HAVE_LINK #undef HAVE_SYMLINK /* its in win32/time.c */ @@ -48,7 +46,6 @@ #define HAVE_NANOSLEEP 1 #define PHP_SLEEP_NON_VOID 1 -#define HAVE_GETHOSTNAME 1 #define HAVE_GETCWD 1 #define NEED_ISBLANK 1 #define DISCARD_PATH 0 @@ -67,18 +64,12 @@ #define HAVE_STRUCT_STAT_ST_RDEV 1 #define REGEX 1 #define HSREGEX 1 -#define HAVE_GCVT 1 #define HAVE_GETLOGIN 1 #define HAVE_MEMMOVE 1 -#define HAVE_PUTENV 1 #define HAVE_REGCOMP 1 #define HAVE_LOCALE_H 1 -#ifndef HAVE_LIBBIND -# define HAVE_SETVBUF 1 -#endif #define HAVE_SHUTDOWN 1 #define HAVE_STRCASECMP 1 -#define HAVE_TEMPNAM 1 #define HAVE_UTIME 1 #undef HAVE_DIRENT_H #define HAVE_FCNTL_H 1 |