mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
credentials: macos: check for existence of LOCAL_PEERPID
- Fixes build errors for macOS 10.7 and earlier, where this is not supported
This commit is contained in:
parent
c1f8865689
commit
d785405268
@ -6077,12 +6077,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…
Reference in New Issue
Block a user