mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Fix subshell support for 5.x which has grantpt(3).
This commit is contained in:
parent
63098d4f9d
commit
06f1027824
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84921
1 changed files with 11 additions and 0 deletions
11
misc/mc/files/patch-src::subshell.c
Normal file
11
misc/mc/files/patch-src::subshell.c
Normal file
|
@ -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);
|
Loading…
Add table
Reference in a new issue