summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-09-04 00:17:21 +0200
committerJoe Watkins <krakjoe@php.net>2018-09-04 12:01:24 +0200
commiteff22dc511d677d12097018da630971d730b70f9 (patch)
treea4dc96ebc47b4d28db6452141d11c8d1d57d5a18 /main
parentefbc05a5a8b5ae66bc059d57c375c524e4208d19 (diff)
downloadphp-git-eff22dc511d677d12097018da630971d730b70f9.tar.gz
Remove AC_HEADER_DIRENT
Autoconf 2.59d (released in 2006) [1] started promoting several macros as not relevant for newer systems anymore, including the `AC_HEADER_DIRENT`. This macro checks which header defines the `DIR` type. If `<dirent.h>` is available it defines the `HAVE_DIRENT_H` symbol. Since the `<dirent.h>` header is already checked in the `configure.ac`, this check is not needed anymore. This macro also additionally checks for SCO Xenix (discontinued, latest release 1989) dir and x libraries. [2] Commit 6ed790685f9ddae11834f36b0ba4fea58afc805a introduced also `<sys/dir.h>`. This header exists from times of UNIX System V and provided definition of DIR type on these systems such as 4.3BSD. Today `<sys/dir.h>` is kept for backwards compatibility and includes the `<dirent.h>` on current systems. With `dirent.h>` present this include is no longer required. Refs: [1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS [2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html Remove unused dirent.h includes
Diffstat (limited to 'main')
-rw-r--r--main/php_scandir.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/main/php_scandir.h b/main/php_scandir.h
index ce31bc200c..17d5e9e0de 100644
--- a/main/php_scandir.h
+++ b/main/php_scandir.h
@@ -22,10 +22,6 @@
#include <sys/types.h>
-#ifdef HAVE_SYS_DIR_H
-#include <sys/dir.h>
-#endif
-
#ifdef PHP_WIN32
#include "config.w32.h"
#include "win32/readdir.h"