Fix OS X build after a45221458d (nw)

posixptty.cpp uses openpty, which remains in <util.h> under OS X.
This commit is contained in:
AJR 2018-12-11 19:42:08 -05:00
parent a45221458d
commit 9f4fc823d4

View File

@ -22,11 +22,9 @@
#if defined(__FreeBSD_kernel__) || defined(__DragonFly__)
#include <termios.h>
#include <libutil.h>
#elif defined(__NetBSD__) || defined(__OpenBSD__)
#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
#include <termios.h>
#include <util.h>
#elif defined(__APPLE__)
#include <termios.h>
#elif defined(__linux__) || defined(EMSCRIPTEN)
#include <pty.h>
#elif defined(__HAIKU__)