1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-15 20:26:33 +00:00

Haiku OS port (#485)

* Haiku OS port
* haiku with X11 backend
* haiku has stpncpy
* Haiku is not Linux.
* X not stable enough on Haiku
* Haiku : settimeofday is a no-op
* Haiku : no need to define settimeofday at all (pointed by nbriggs)

---------

Signed-off-by: Anarchos <sylvain_kerjean@hotmail.com>
This commit is contained in:
Anarchos
2024-04-11 05:14:46 +02:00
committed by GitHub
parent 2e86450fad
commit e2e2c7e394
11 changed files with 80 additions and 9 deletions

View File

@@ -51,7 +51,11 @@ void tty_open(void)
if (TTY_Fd < 0) {
if ((TTY_Fd = open(TTY_Dev, O_RDWR)) >= 0) {
tcgetattr(TTY_Fd, &options);
#ifndef MAIKO_OS_HAIKU
options.c_iflag &= ~(IMAXBEL|IXOFF|INPCK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON|IGNPAR);
#else
options.c_iflag &= ~(IXOFF|INPCK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON|IGNPAR);
#endif
options.c_iflag |= IGNBRK;
options.c_oflag &= ~OPOST;
options.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN|NOFLSH|TOSTOP);