diff options
author | Ben Huntsman <BHuntsman@mail2.cu-portland.edu> | 2020-05-04 19:53:21 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-07 20:36:03 -0400 |
commit | 5802b09e9d8ceadd2cefdccfd0391c04e492369b (patch) | |
tree | 0e8100529a19560216ffa3dd6ac077fe390ced34 /src/cmd/9term | |
parent | f84d54a0337f9e101c8baeb51272f33b05b2a0e1 (diff) | |
download | plan9port-5802b09e9d8ceadd2cefdccfd0391c04e492369b.tar.gz plan9port-5802b09e9d8ceadd2cefdccfd0391c04e492369b.tar.bz2 plan9port-5802b09e9d8ceadd2cefdccfd0391c04e492369b.zip |
all: fix #includes for AIX, add a few AIX "implementation" files
Diffstat (limited to 'src/cmd/9term')
-rw-r--r-- | src/cmd/9term/AIX.c | 2 | ||||
-rw-r--r-- | src/cmd/9term/bsdpty.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/9term/AIX.c b/src/cmd/9term/AIX.c new file mode 100644 index 00000000..b7ccbf0f --- /dev/null +++ b/src/cmd/9term/AIX.c @@ -0,0 +1,2 @@ +#define TIOCSCTTY 0x540E +#include "bsdpty.c" diff --git a/src/cmd/9term/bsdpty.c b/src/cmd/9term/bsdpty.c index d64e4c2f..3710a18d 100644 --- a/src/cmd/9term/bsdpty.c +++ b/src/cmd/9term/bsdpty.c @@ -5,7 +5,9 @@ #include <errno.h> #include <grp.h> #include <termios.h> +#ifdef HAS_SYS_TERMIOS #include <sys/termios.h> +#endif #ifdef __linux__ #include <pty.h> #endif |