From ce37ada87139ef418401f9f35439007a8c04a856 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 7 Mar 2017 10:29:37 +0900 Subject: tools: More portable for openpty use. * configure.ac (AC_CHECK_HEADERS): Add util.h libutil.h and termios.h. * tools/symcryptrun.c: Include those headers. -- This is for OpenBSD and FreeBSD. Signed-off-by: NIIBE Yutaka --- tools/symcryptrun.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tools/symcryptrun.c') diff --git a/tools/symcryptrun.c b/tools/symcryptrun.c index a72b9cf7a..b32d43ac8 100644 --- a/tools/symcryptrun.c +++ b/tools/symcryptrun.c @@ -71,9 +71,21 @@ #include #include #include + #ifdef HAVE_PTY_H #include +#else +#ifdef HAVE_TERMIOS_H +#include +#endif +#ifdef HAVE_UTIL_H +#include +#endif +#ifdef HAVE_LIBUTIL_H +#include #endif +#endif + #ifdef HAVE_UTMP_H #include #endif -- cgit v1.2.3