$OpenBSD: patch-configure,v 1.5 2017/12/02 18:48:42 ajacoutot Exp $

Index: configure
--- configure.orig
+++ configure
@@ -14657,11 +14657,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);
   ;
