$OpenBSD: patch-src_rpc_virnetsocket_c,v 1.1.1.1 2012/09/04 14:41:15 jasper Exp $ Use sockpeercred on OpenBSD. --- src/rpc/virnetsocket.c.orig Wed Aug 22 12:00:59 2012 +++ src/rpc/virnetsocket.c Tue Sep 4 14:46:27 2012 @@ -988,7 +988,11 @@ int virNetSocketGetUNIXIdentity(virNetSocketPtr sock, gid_t *gid, pid_t *pid) { +#if defined (__OpenBSD__) + struct sockpeercred cr; +#else struct ucred cr; +#endif socklen_t cr_len = sizeof(cr); virMutexLock(&sock->lock);