Skip to content

Commit 7d485aa

Browse files
authored
ext/sockets: Clean header checks (#12607)
- 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.
1 parent 1ad5f9d commit 7d485aa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ fcntl.h \
404404
grp.h \
405405
ieeefp.h \
406406
langinfo.h \
407-
linux/filter.h \
408407
linux/sock_diag.h \
409408
malloc.h \
410409
os/signpost.h \

ext/sockets/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PHP_ARG_ENABLE([sockets],
66
if test "$PHP_SOCKETS" != "no"; then
77
AC_CHECK_FUNCS([hstrerror if_nametoindex if_indextoname])
88
AC_CHECK_FUNCS(sockatmark)
9-
AC_CHECK_HEADERS([netinet/tcp.h sys/un.h sys/sockio.h linux/filter.h])
9+
AC_CHECK_HEADERS([sys/sockio.h linux/filter.h])
1010
AC_DEFINE([HAVE_SOCKETS], 1, [ ])
1111

1212
dnl Check for fied ss_family in sockaddr_storage (missing in AIX until 5.3)

0 commit comments

Comments
 (0)