diff options
Diffstat (limited to 'ham/dpbox/patches/patch-ai')
-rw-r--r-- | ham/dpbox/patches/patch-ai | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ham/dpbox/patches/patch-ai b/ham/dpbox/patches/patch-ai new file mode 100644 index 00000000000..1bedf67e79f --- /dev/null +++ b/ham/dpbox/patches/patch-ai @@ -0,0 +1,39 @@ +$NetBSD: patch-ai,v 1.1 2006/01/24 22:27:07 joerg Exp $ + +--- shell.c.orig 2006-01-24 22:00:03.000000000 +0000 ++++ shell.c +@@ -1,6 +1,6 @@ + /* ---- shell functs, stolen from TNT / Mark Wahl, DL4YBG ----- */ + +-#if defined(__linux__) || defined(__NetBSD__) ++#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__) + #include <unistd.h> + #include <stdio.h> + #include <stdlib.h> +@@ -231,7 +231,7 @@ boolean close_shell(short unr) + trans_show_puffer(unr,user[unr]->ptybuffer,user[unr]->ptybuflen); + } + if (user[unr]->pty >= minhandle) { +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__DragonFly__) + ioctl(user[unr]->pty, TCIOFLUSH, 2); + #else + ioctl(user[unr]->pty, TCFLSH, 2); +@@ -415,7 +415,7 @@ boolean cmd_shell(short unr, boolean tra + if (user[unr]->ptylfcrconv) { + memset((char *) &termios, 0, sizeof(termios)); + termios.c_iflag = ICRNL | IXOFF; +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__DragonFly__) + termios.c_oflag = OPOST | OXTABS | ONLRET; + #else + termios.c_oflag = OPOST | TAB3 | ONLRET; +@@ -485,7 +485,7 @@ boolean cmd_run(short unr, boolean trans + if (user[unr]->ptylfcrconv) { + memset((char *) &termios, 0, sizeof(termios)); + termios.c_iflag = ICRNL | IXOFF; +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__DragonFly__) + termios.c_oflag = OPOST | OXTABS | ONLRET; + #else + termios.c_oflag = OPOST | TAB3 | ONLRET; |