mc 4.6.0 subshell fix for FreeBSD 5.x
Max Khon
fjoe at FreeBSD.org
Tue Jul 15 14:14:53 UTC 2003
hi, there!
Attached patch fixes subshell support for FreeBSD 5.x which has grantpt(3).
/fjoe
-------------- next part --------------
--- 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);
More information about the mc-devel
mailing list