mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix GH-9493: fix ancillary data build for FreeBSD prior to the 13 release. (#9496)
the legacy sockcred struct does not hold the process id, thus sockcred2 had been added from FreeBSD 13 in conjunction with LOCAL_CREDS_PERSISTENT to address this thus we disable the feature for earlier releases.
This commit is contained in:
parent
ce058273ba
commit
4f2759525c
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,13 @@
|
|||
# include <sys/socket.h>
|
||||
# if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
# include <sys/un.h>
|
||||
# if defined(__FreeBSD__)
|
||||
// we can't fully implement the ancillary data feature with
|
||||
// the legacy sockcred/LOCAL_CREDS pair (due to lack of process
|
||||
// id handling), so we disable it since only the
|
||||
// sockcred2/LOCAL_CREDS_PERSISTENT pair can address it.
|
||||
# undef LOCAL_CREDS
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# include <Ws2tcpip.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue