diff options
author | ache <ache@FreeBSD.org> | 1994-10-06 20:41:56 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-10-06 20:41:56 +0000 |
commit | d5d42820e00fb15ff8263194cdef65a75b5a6438 (patch) | |
tree | 4ac80dbcf46607f431238be06a16ff02087b63ff /usr.bin/tset | |
parent | 8ef9b59f4286b53af4aabb1452a4a1fc74545a5b (diff) | |
download | FreeBSD-src-d5d42820e00fb15ff8263194cdef65a75b5a6438.zip FreeBSD-src-d5d42820e00fb15ff8263194cdef65a75b5a6438.tar.gz |
PC/ospeed code ifdefed out, our libtermcap use usleep now
Diffstat (limited to 'usr.bin/tset')
-rw-r--r-- | usr.bin/tset/extern.h | 2 | ||||
-rw-r--r-- | usr.bin/tset/set.c | 3 | ||||
-rw-r--r-- | usr.bin/tset/tset.c | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/tset/extern.h b/usr.bin/tset/extern.h index 0465a66..7bc180e 100644 --- a/usr.bin/tset/extern.h +++ b/usr.bin/tset/extern.h @@ -34,8 +34,10 @@ */ /* This should be in <termcap.h> instead. */ +#ifndef __FreeBSD__ extern char PC; extern short ospeed; +#endif int tgetent __P((char *, char *)); int tgetflag __P((char *)); int tgetnum __P((char *)); diff --git a/usr.bin/tset/set.c b/usr.bin/tset/set.c index b279a1c..0b6c0a0 100644 --- a/usr.bin/tset/set.c +++ b/usr.bin/tset/set.c @@ -241,9 +241,10 @@ set_init() int settle; bp = buf; +#ifndef __FreeBSD__ if (tgetstr("pc", &bp) != 0) /* Get/set pad character. */ PC = buf[0]; - +#endif #ifdef TAB3 if (oldmode.c_oflag & (TAB3 | ONLCR | OCRNL | ONLRET)) { oldmode.c_oflag &= (TAB3 | ONLCR | OCRNL | ONLRET); diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c index 60bc5fe..3fbf3c0 100644 --- a/usr.bin/tset/tset.c +++ b/usr.bin/tset/tset.c @@ -81,6 +81,7 @@ main(argc, argv) oldmode = mode; Ospeed = cfgetospeed(&mode); +#ifndef __FreeBSD__ switch(Ospeed) { case B0: ospeed = 0; break; case B50: ospeed = 1; break; @@ -109,7 +110,7 @@ main(argc, argv) case B115200: ospeed = 17; break; #endif } - +#endif /* __FreeBSD__ */ if (p = strrchr(*argv, '/')) ++p; else |