--- freem/src/service.c 2025/03/24 01:52:30 1.8
+++ freem/src/service.c 2025/03/24 01:55:46 1.10
@@ -1,5 +1,5 @@
/*
- * $Id: service.c,v 1.8 2025/03/24 01:52:30 snw Exp $
+ * $Id: service.c,v 1.10 2025/03/24 01:55:46 snw Exp $
* terminal and sequential I/O handling,
* file and global locking
*
@@ -25,6 +25,12 @@
* along with FreeM. If not, see .
*
* $Log: service.c,v $
+ * Revision 1.10 2025/03/24 01:55:46 snw
+ * Work around some OS/2 incompatibilities in service.c
+ *
+ * Revision 1.9 2025/03/24 01:54:09 snw
+ * Work around some OS/2 incompatibilities in set_break and set_zbreak
+ *
* Revision 1.8 2025/03/24 01:52:30 snw
* Work around some OS/2 incompatibilities in set_break and set_zbreak
*
@@ -82,6 +88,10 @@ int scosgr (short att, short bwflag);
# if !defined(MSDOS)
# include
# endif
+# if defined(__OS2__)
+# include
+# define termio termios
+# endif
# endif
#else
# include
@@ -4506,6 +4516,8 @@ void set_io (short action) /* set io_
void set_break (short break_char)
{
+
+#if !defined(__OS2__)
struct termios termios_p;
tcgetattr (0, &termios_p);
@@ -4513,14 +4525,14 @@ void set_break (short break_char)
termios_p.c_cc[VINTR] = break_char; /* interrupt = CTRL/C */
tcsetattr (0, TCSADRAIN, &termios_p); /* set paramters */
-
+#endif
return;
} /* end of set_break() */
void set_zbreak (short quit_char)
{
-
+#if !defined(__OS2__)
struct termios termios_p;
tcgetattr (0, &termios_p);
@@ -4528,7 +4540,7 @@ void set_zbreak (short quit_char)
termios_p.c_cc[VQUIT] = quit_char;
tcsetattr (0, TCSADRAIN, &termios_p); /* set paramters */
-
+#endif
return;
} /* end of set_zbreak() */