1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/cad/spice/files/patch-src_lib_cp_complete.c
Martin Wilke 3d5ec94e7d - Use termios.h
PR:             110439
Submitted by:   Ed Schouten <ed@fxq.nl>
2007-03-21 12:32:53 +00:00

21 lines
614 B
C

--- src/lib/cp/complete.c Wed Jun 19 05:55:38 1991
+++ src/lib/cp/complete.c Sat Mar 17 11:51:56 2007
@@ -445,14 +445,14 @@
ison = on;
if (ison == true) {
- (void) ioctl(fileno(cp_in), TERM_GET, (char *) &OS_Buf);
+ tcgetattr(fileno(cp_in), &OS_Buf);
sbuf = OS_Buf;
sbuf.c_cc[VEOF] = 0;
sbuf.c_cc[VEOL] = ESCAPE;
sbuf.c_cc[VEOL2] = CNTRL_D;
- (void) ioctl(fileno(cp_in), TERM_SET, (char *) &sbuf);
+ tcsetattr(fileno(cp_in), TCSANOW, &OS_Buf);
} else {
- (void) ioctl(fileno(cp_in), TERM_SET, (char *) &OS_Buf);
+ tcsetattr(fileno(cp_in), TCSANOW, &OS_Buf);
}
# endif