summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-12-11 19:42:08 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-12-11 19:42:08 -0500
commit9f4fc823d48860705c2bea67654ad6ba8615f165 (patch)
tree863ce0c02626f3066d27cb30393cf77040192a15
parenta45221458dfba557ae32c0073750a06deea3f45e (diff)
Fix OS X build after a45221458dfba557ae32c0073750a06deea3f45e (nw)
posixptty.cpp uses openpty, which remains in <util.h> under OS X.
-rw-r--r--src/osd/modules/file/posixptty.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/osd/modules/file/posixptty.cpp b/src/osd/modules/file/posixptty.cpp
index 51c655a5d1e..4a4bc9d8db9 100644
--- a/src/osd/modules/file/posixptty.cpp
+++ b/src/osd/modules/file/posixptty.cpp
@@ -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__)