Include headers if found regardless of forkpty.

This commit is contained in:
Nicholas Marriott 2017-10-11 08:03:31 +01:00
parent 2be01ab4ec
commit a3967de9a5

View File

@ -101,17 +101,17 @@ void warnx(const char *, ...);
#include <paths.h>
#endif
#ifdef HAVE_FORKPTY
#ifdef HAVE_LIBUTIL_H
#include <libutil.h>
#endif
#ifdef HAVE_PTY_H
#include <pty.h>
#endif
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
#endif
#ifdef HAVE_VIS
#include <vis.h>