--- configure.orig	2013-01-16 00:19:42.938442394 +0100
+++ configure	2013-01-16 00:20:01.955437575 +0100
@@ -10780,7 +10780,7 @@
 
 $as_echo "#define HAS_OPENPTY 1" >>confdefs.h
 
-	for ac_header in util.h pty.h
+	for ac_header in util.h pty.h libutil.h
 do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
