1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-31 13:52:29 +00:00

Patches that made it possible to compile on MacOS X as of Nov 13, 2011.

This commit is contained in:
Nick Briggs
2015-04-20 21:14:32 -07:00
parent de170a64d9
commit 5a702e808a
16 changed files with 67 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ static char *id = "$Id: unixfork.c,v 1.6 2001/12/26 22:17:05 sybalsky Exp $ Copy
#ifndef USETERMIOS
#include <sys/ioctl.h>
#else
#ifdef INDIGO
#if defined(INDIGO) || defined(MACOSX)
#include <termios.h>
#else
#include <sys/termios.h>
@@ -676,13 +676,21 @@ ForkUnixShell(slot, ltr, numb, termtype, shellarg)
kill processing, echo, backspace to erase, echo ctrl
chars as ^x, kill line by backspacing */
#ifdef MACOSX
tcgetattr(SlaveFD, &tio);
#else
ioctl(SlaveFD, TCGETS, (char *)&tio);
#endif
#ifdef INDIGO
tio.c_lflag |= ICANON | ECHO | ECHOE;
#else
tio.c_lflag |= ICANON | ECHO | ECHOE | ECHOCTL | ECHOKE;
#endif /* INDIGO */
#ifdef MACOSX
tcsetattr(SlaveFD, TCSANOW, &tio);
#else
ioctl(SlaveFD, TCSETS, (char *)&tio);
#endif
#endif /* USETERMIOS */
(void) dup2(SlaveFD, 0);