diff --git a/ext/sockets/conversions.h b/ext/sockets/conversions.h index 41c22135cea76..1f1fd29c5c05c 100644 --- a/ext/sockets/conversions.h +++ b/ext/sockets/conversions.h @@ -8,6 +8,13 @@ # include # if defined(__FreeBSD__) || defined(__NetBSD__) # include +# 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