os: Add an implementation of wl_os_socket_peercred() for darwin

This adds an alternative implementation of wl_os_socket_peercred() using
getpeereid(3) and LOCAL_PEERPID, similar to changes I recently made to
xorg-server.

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2023-01-27 16:42:29 -08:00
parent 83e9c9e117
commit aa7c02ff80
2 changed files with 17 additions and 0 deletions

View file

@ -40,6 +40,7 @@ endforeach
have_funcs = [
'accept4',
'getpeereid',
'mkostemp',
'posix_fallocate',
'prctl',