$OpenBSD: patch-configure,v 1.3 2013/09/17 11:10:02 ajacoutot Exp $
--- configure.orig	Mon Jun 24 07:14:16 2013
+++ configure	Tue Sep 17 13:06:46 2013
@@ -14355,11 +14355,12 @@ if ${assuan_cv_sys_so_peercred+:} false; then :
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <sys/types.h>
 #include <sys/socket.h>
 int
 main ()
 {
-struct ucred cr;
+struct sockpeercred cr;
           int cl = sizeof cr;
           getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
   ;
