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:
committed by
Christoph M. Becker
parent
ca6d1fd57b
commit
30c8f3a80f
@@ -395,6 +395,7 @@ fcntl.h \
|
||||
grp.h \
|
||||
ieeefp.h \
|
||||
langinfo.h \
|
||||
linux/sock_diag.h \
|
||||
malloc.h \
|
||||
poll.h \
|
||||
pty.h \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user