--- egg/egg-unix-credentials.c.orig	Mon May 23 18:55:29 2011
+++ egg/egg-unix-credentials.c	Mon May 23 18:56:20 2011
@@ -107,7 +107,11 @@
 
 	{
 #ifdef SO_PEERCRED
+#ifndef __OpenBSD__
 		struct ucred cr;   
+#else
+		struct sockpeercred cr;
+#endif
 		socklen_t cr_len = sizeof (cr);
 		
 		if (getsockopt (sock, SOL_SOCKET, SO_PEERCRED, &cr, &cr_len) == 0 &&
