Another NetBSD build fix

Add a HAVE_OPENPTY definition, and move NetBSD definitions into their own block, for clarity.
This commit is contained in:
David H. Gutteridge
2020-04-22 21:52:55 -04:00
committed by GitHub
parent 11c706d3ad
commit d0a1fd39b9
+7 -1
View File
@@ -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