#include "includes.h"
#if !defined(HAVE_OPENPTY)
+#include <sys/types.h>
+
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
+
#ifdef HAVE_UTIL_H
# include <util.h>
#endif /* HAVE_UTIL_H */
# include <sys/stropts.h>
#endif
+#include <signal.h>
+#include <string.h>
+#include <unistd.h>
+
#ifndef O_NOCTTY
#define O_NOCTTY 0
#endif