$OpenBSD: patch-configure_in,v 1.3 2011/09/21 14:07:47 pea Exp $
--- configure.in.orig	Thu Jun 30 12:13:36 2011
+++ configure.in	Thu Sep 15 11:44:28 2011
@@ -584,7 +584,7 @@ SLAPD_SQL_LIBS=
 SLAPD_SQL_INCLUDES=
 
 KRB4_LIBS=
-KRB5_LIBS=
+KRB5_LIBS="-lgssapi -lkrb5 -lasn1 -lcom_err"
 SASL_LIBS=
 TLS_LIBS=
 MODULES_LIBS=
@@ -1910,6 +1910,7 @@ if test $ol_enable_wrappers != no ; then
 		save_LIBS="$LIBS"
 		LIBS="$LIBS -lwrap"
 		AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#include <sys/types.h>
 #include <tcpd.h>
 int allow_severity = 0;
 int deny_severity  = 0;
