diff options
author | fjoe <fjoe@FreeBSD.org> | 2003-07-15 22:06:07 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2003-07-15 22:06:07 +0800 |
commit | 662576dac9a82d6f157ba3bad66e643449fa1bcf (patch) | |
tree | e3a56f8be6371df1535147db95dbe69646b7fa43 /misc | |
parent | 19b1d7fb97671719ef5223171c5450b8d8e06d82 (diff) | |
download | freebsd-ports-gnome-662576dac9a82d6f157ba3bad66e643449fa1bcf.tar.gz freebsd-ports-gnome-662576dac9a82d6f157ba3bad66e643449fa1bcf.tar.zst freebsd-ports-gnome-662576dac9a82d6f157ba3bad66e643449fa1bcf.zip |
Fix subshell support for 5.x which has grantpt(3).
Diffstat (limited to 'misc')
-rw-r--r-- | misc/mc/files/patch-src::subshell.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src::subshell.c b/misc/mc/files/patch-src::subshell.c new file mode 100644 index 000000000000..9a8ced756e80 --- /dev/null +++ b/misc/mc/files/patch-src::subshell.c @@ -0,0 +1,11 @@ +--- src/subshell.c.orig Tue Jul 15 20:36:24 2003 ++++ src/subshell.c Tue Jul 15 20:36:56 2003 +@@ -1166,6 +1166,8 @@ + #elif IS_AIX + strcpy (pty_name, "/dev/ptc"); + pty_master = open (pty_name, O_RDWR); ++#elif defined(__FreeBSD__) ++ pty_master = posix_openpt(O_RDWR); + #else + strcpy (pty_name, "/dev/ptmx"); + pty_master = open (pty_name, O_RDWR); |