mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Merge branch 'wip/pwithnall/backport-2707-macos-local-peerpid-fix-glib-2-72' into 'glib-2-72'
Backport !2707 “credentials: macos: check for existence of LOCAL_PEERPID” to glib-2-72 See merge request GNOME/glib!2709
This commit is contained in:
commit
cc2dc12d0e
@ -6070,12 +6070,14 @@ g_socket_get_credentials (GSocket *socket,
|
||||
G_CREDENTIALS_NATIVE_TYPE,
|
||||
&cred);
|
||||
|
||||
#ifdef LOCAL_PEERPID
|
||||
if (getsockopt (socket->priv->fd,
|
||||
SOL_LOCAL,
|
||||
LOCAL_PEERPID,
|
||||
&pid,
|
||||
&optlen) == 0)
|
||||
_g_credentials_set_local_peerid (ret, pid);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user