1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-8674: sockets extension won't build for older Linux kernels

In abscence of the needed header, disable the feature altogether.

Closes GH-8677.
This commit is contained in:
David Carlier
2022-06-01 12:32:04 +01:00
committed by Christoph M. Becker
parent ca6d1fd57b
commit 30c8f3a80f
2 changed files with 4 additions and 1 deletions

View File

@@ -395,6 +395,7 @@ fcntl.h \
grp.h \
ieeefp.h \
langinfo.h \
linux/sock_diag.h \
malloc.h \
poll.h \
pty.h \

View File

@@ -55,8 +55,10 @@
# if HAVE_IF_NAMETOINDEX
# include <net/if.h>
# endif
# ifdef SO_MEMINFO
# if defined(HAVE_LINUX_SOCK_DIAG_H)
# include <linux/sock_diag.h>
# else
# undef SO_MEMINFO
# endif
#endif