mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 09:20:19 +01:00
OpenBSD build fix: struct ucred is struct sockpeercred there
This commit is contained in:
parent
238f8edcaf
commit
7dfe1c56b0
1 changed files with 4 additions and 0 deletions
|
|
@ -1179,7 +1179,11 @@ GetLocalClientCreds(ClientPtr client, LocalClientCredRec ** lccp)
|
|||
ucred_t *peercred = NULL;
|
||||
const gid_t *gids;
|
||||
#elif defined(SO_PEERCRED)
|
||||
#ifndef __OpenBSD__
|
||||
struct ucred peercred;
|
||||
#else
|
||||
struct sockpeercred peercred;
|
||||
#endif
|
||||
socklen_t so_len = sizeof(peercred);
|
||||
#elif defined(LOCAL_PEERCRED) && defined(HAVE_XUCRED_CR_PID)
|
||||
struct xucred peercred;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue