From aefe6f0e9fe57e9ab326da13b621fb8eb56acabe Mon Sep 17 00:00:00 2001 From: Brian Callahan Date: Mon, 16 Mar 2015 11:38:32 -0400 Subject: [PATCH] OpenBSD has util.h not libutil.h --- lib/kpty.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/kpty.cpp b/lib/kpty.cpp index 1039e00..0baa640 100644 --- a/lib/kpty.cpp +++ b/lib/kpty.cpp @@ -27,11 +27,16 @@ #include -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) #define HAVE_LOGIN #define HAVE_LIBUTIL_H #endif +#if defined(__OpenBSD__) +#define HAVE_LOGIN +#define HAVE_UTIL_H +#endif + #ifdef __sgi #define __svr4__ #endif