--- freem/src/service.c 2025/03/09 19:50:47 1.7 +++ freem/src/service.c 2025/03/24 01:52:30 1.8 @@ -1,5 +1,5 @@ /* - * $Id: service.c,v 1.7 2025/03/09 19:50:47 snw Exp $ + * $Id: service.c,v 1.8 2025/03/24 01:52:30 snw Exp $ * terminal and sequential I/O handling, * file and global locking * @@ -25,6 +25,9 @@ * along with FreeM. If not, see . * * $Log: service.c,v $ + * Revision 1.8 2025/03/24 01:52:30 snw + * Work around some OS/2 incompatibilities in set_break and set_zbreak + * * Revision 1.7 2025/03/09 19:50:47 snw * Second phase of REUSE compliance and header reformat * @@ -4431,6 +4434,7 @@ void set_io (short action) /* DEL = UNIX quit */ void set_break (short break_char) { +#if !defined(__OS2__) struct termio arg; ioctl (0, TCGETA, &arg); @@ -4438,7 +4442,7 @@ void set_break (short break_char) arg.c_cc[VINTR] = break_char; /* interrupt = CTRL/C */ ioctl (0, TCSETA, &arg); - +#endif return; } /* end of set_break() */ @@ -4449,6 +4453,7 @@ void set_break (short break_char) /* DEL = UNIX quit */ void set_zbreak (short quit_char) { +#if !defined(__OS2__) struct termio arg; ioctl (0, TCGETA, &arg); @@ -4456,7 +4461,7 @@ void set_zbreak (short quit_char) arg.c_cc[VQUIT] = quit_char; ioctl (0, TCSETA, &arg); - +#endif return; } /* end of set_zbreak() */