From 723580b89590c01c25443787d685f184d6f0deeb Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sat, 31 Aug 2002 19:51:27 +0000 Subject: [PATCH] Portability fix for NetBSD and OpenBSD regarding openpty(). --- configure.in.mid | 2 +- kdbg/ttywnd.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in.mid b/configure.in.mid index 95a7b0d..2cfdeb9 100644 --- a/configure.in.mid +++ b/configure.in.mid @@ -6,7 +6,7 @@ dnl check for some more header files. You can remove some of dnl them, if you want to. But it doesn't hurt AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/cdefs.h) AC_CHECK_HEADERS(fnmatch.h sysent.h strings.h sys/stat.h) -AC_CHECK_HEADERS(sys/ioctl.h pty.h libutil.h) +AC_CHECK_HEADERS(sys/ioctl.h pty.h libutil.h util.h) dnl Checks for libraries. AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket -lnsl"]) dnl for Solaris' X11 diff --git a/kdbg/ttywnd.cpp b/kdbg/ttywnd.cpp index 5a99efc..195fa83 100644 --- a/kdbg/ttywnd.cpp +++ b/kdbg/ttywnd.cpp @@ -28,6 +28,9 @@ #ifdef HAVE_LIBUTIL_H #include /* openpty on FreeBSD */ #endif +#ifdef HAVE_UTIL_H /* openpty on NetBSD, OpenBSD */ +#include +#endif #include #include "mydebug.h" -- 2.11.4.GIT