- (djm) Bug #317: FreeBSD needs libutil.h for openpty() Report from
   dirk.meyer@dinoex.sub.org
diff --git a/includes.h b/includes.h
index d7b875c..37d402e 100644
--- a/includes.h
+++ b/includes.h
@@ -157,6 +157,10 @@
 # include <tmpdir.h>
 #endif
 
+#ifdef HAVE_LIBUTIL_H
+# include <libutil.h> /* Openpty on FreeBSD at least */
+#endif
+
 #include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
 
 #include "defines.h"