From 79b1b1aaae5cee91f76a6c39d3c8d81356669c15 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 3 Nov 2023 22:13:37 +0100 Subject: [PATCH] Clean header checks - Unused header checks removed: HAVE_NETINET_TCP_H and HAVE_SYS_UN_H are not used in the code. - Duplicate linux/filter.h check removed: HAVE_LINUX_FILTER_H is already defined in ext/sockets. --- configure.ac | 1 - ext/sockets/config.m4 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a46fa70a31ac0..5bdcede964363 100644 --- a/configure.ac +++ b/configure.ac @@ -404,7 +404,6 @@ fcntl.h \ grp.h \ ieeefp.h \ langinfo.h \ -linux/filter.h \ linux/sock_diag.h \ malloc.h \ os/signpost.h \ diff --git a/ext/sockets/config.m4 b/ext/sockets/config.m4 index d0fad902114ec..bee6147736a83 100644 --- a/ext/sockets/config.m4 +++ b/ext/sockets/config.m4 @@ -6,7 +6,7 @@ PHP_ARG_ENABLE([sockets], if test "$PHP_SOCKETS" != "no"; then AC_CHECK_FUNCS([hstrerror if_nametoindex if_indextoname]) AC_CHECK_FUNCS(sockatmark) - AC_CHECK_HEADERS([netinet/tcp.h sys/un.h sys/sockio.h linux/filter.h]) + AC_CHECK_HEADERS([sys/sockio.h linux/filter.h]) AC_DEFINE([HAVE_SOCKETS], 1, [ ]) dnl Check for fied ss_family in sockaddr_storage (missing in AIX until 5.3)