SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
devel/ddd/patches/patch-ddd_TTYAgent_C
Normal file
15
devel/ddd/patches/patch-ddd_TTYAgent_C
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue