From d0a1fd39b9e3f2f65eab41a9416d834d71a6daff Mon Sep 17 00:00:00 2001 From: "David H. Gutteridge" Date: Wed, 22 Apr 2020 21:52:55 -0400 Subject: [PATCH] Another NetBSD build fix Add a HAVE_OPENPTY definition, and move NetBSD definitions into their own block, for clarity. --- lib/kpty.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/kpty.cpp b/lib/kpty.cpp index c3338f5..650ead8 100644 --- a/lib/kpty.cpp +++ b/lib/kpty.cpp @@ -32,11 +32,17 @@ #define HAVE_LIBUTIL_H #endif -#if defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(__OpenBSD__) #define HAVE_LOGIN #define HAVE_UTIL_H #endif +#if defined(__NetBSD__) +#define HAVE_LOGIN +#define HAVE_UTIL_H +#define HAVE_OPENPTY +#endif + #if defined(__APPLE__) #define HAVE_OPENPTY #define HAVE_UTIL_H