diff --git a/acinclude.m4 b/acinclude.m4 index c6f52a0bd23..2c6f4b7dc85 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1460,29 +1460,6 @@ AC_DEFUN([PHP_SOCKADDR_CHECKS], [ fi ]) -dnl -dnl PHP_DECLARED_TIMEZONE -dnl -AC_DEFUN([PHP_DECLARED_TIMEZONE],[ - AC_CACHE_CHECK(for declared timezone, ac_cv_declared_timezone,[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ -#include -#include -#ifdef HAVE_SYS_TIME_H -#include -#endif -]],[[ - time_t foo = (time_t) timezone; -]])],[ - ac_cv_declared_timezone=yes -],[ - ac_cv_declared_timezone=no -])]) - if test "$ac_cv_declared_timezone" = "yes"; then - AC_DEFINE(HAVE_DECLARED_TIMEZONE, 1, [Whether system headers declare timezone]) - fi -]) - dnl dnl PHP_EBCDIC dnl diff --git a/configure.ac b/configure.ac index 6a5bc8bf5a5..89d302910cb 100644 --- a/configure.ac +++ b/configure.ac @@ -734,7 +734,6 @@ fi AC_REPLACE_FUNCS(strlcat strlcpy explicit_bzero getopt) AC_FUNC_ALLOCA -PHP_DECLARED_TIMEZONE PHP_TIME_R_TYPE PHP_READDIR_R_TYPE PHP_CHECK_IN_ADDR_T diff --git a/main/php.h b/main/php.h index 5ea9d511723..332005fa4c8 100644 --- a/main/php.h +++ b/main/php.h @@ -80,7 +80,6 @@ /* Windows specific defines */ #ifdef PHP_WIN32 # define PHP_PROG_SENDMAIL "Built in mailer" -# define HAVE_DECLARED_TIMEZONE # define WIN32_LEAN_AND_MEAN # define NOOPENFILE