SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,15 @@
--- ddd/TTYAgent.C.orig Thu Dec 13 16:07:28 2012
+++ ddd/TTYAgent.C Thu Dec 13 16:10:02 2012
@@ -476,7 +476,11 @@ void TTYAgent::open_master()
// ("UNIX98"). Based on SVR4, and thus possibly streams based.
master = -1;
-#if HAVE_GETPT
+#if HAVE_POSIX_OPENPT
+ master = posix_openpt(O_RDWR|O_NOCTTY);
+ if (master < 0)
+ _raiseIOMsg("posix_openpt");
+#elif HAVE_GETPT
// On systems with GNU libc 2.1, getpt() returns a new file
// descriptor for the next available master pseudo-terminal. This
// function is a GNU extension.