Skip to content

Fix GH-9493: fix ancillary data build for FreeBSD prior to the 13 rel… #9496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ext/sockets/conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down