summaryrefslogtreecommitdiffstats
path: root/tdersync/tdersync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdersync/tdersync.cpp')
-rw-r--r--tdersync/tdersync.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdersync/tdersync.cpp b/tdersync/tdersync.cpp
index 464b3923b..7ffa150d0 100644
--- a/tdersync/tdersync.cpp
+++ b/tdersync/tdersync.cpp
@@ -97,6 +97,8 @@ Reference Manual for Version 2.2.x of the GNU C Library */
#ifdef HAVE_GETPT
master = getpt();
+#elif defined(HAVE_POSIX_OPENTPT)
+ master = posix_openpt(O_RDWR);
#else
master = open("/dev/ptmx", O_RDWR);
#endif