From b132b7ab7efb40628dedf2eae1cf7d6949684bcb Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 20 Jul 2023 09:38:53 +0200 Subject: [PATCH] Remove check for time.h and HAVE_TIME_H (#11726) The `` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. The conditional include based on Windows is there so the win32/time.h can be included on other places when needed. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 --- Zend/zend_hrtime.h | 2 +- configure.ac | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Zend/zend_hrtime.h b/Zend/zend_hrtime.h index a67c9d210c1..6bba076738a 100644 --- a/Zend/zend_hrtime.h +++ b/Zend/zend_hrtime.h @@ -24,7 +24,7 @@ #ifdef HAVE_UNISTD_H # include #endif -#ifdef HAVE_TIME_H +#ifndef PHP_WIN32 # include #endif diff --git a/configure.ac b/configure.ac index bbe0d1f6ed8..46c653673dd 100644 --- a/configure.ac +++ b/configure.ac @@ -398,7 +398,6 @@ dirent.h \ sys/param.h \ sys/types.h \ sys/time.h \ -time.h \ netinet/in.h \ alloca.h \ arpa/inet.h \