--- freem/src/sighnd.c	2025/01/19 02:04:04	1.1
+++ freem/src/sighnd.c	2025/03/24 04:15:25	1.6
@@ -1,23 +1,11 @@
 /*
- *                            *
- *                           * *
- *                          *   *
- *                     ***************
- *                      * *       * *
- *                       *  MUMPS  *
- *                      * *       * *
- *                     ***************
- *                          *   *
- *                           * *
- *                            *
- *
- *   sighnd.c
+ *   $Id: sighnd.c,v 1.6 2025/03/24 04:15:25 snw Exp $
  *    FreeM signal handlers 
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland
- *    Copyright (C) 2020 Coherent Logic Development LLC
+ *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
  *
  *
  *   This file is part of FreeM.
@@ -35,6 +23,22 @@
  *   You should have received a copy of the GNU Affero Public License
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
+ *   $Log: sighnd.c,v $
+ *   Revision 1.6  2025/03/24 04:15:25  snw
+ *   Create dummy onwinch signal handler for OS/2
+ *
+ *   Revision 1.5  2025/03/24 00:38:40  snw
+ *   Fix termios junk in sighnd.c
+ *
+ *   Revision 1.4  2025/03/24 00:34:30  snw
+ *   Fix termios junk in sighnd.c
+ *
+ *   Revision 1.3  2025/03/09 19:50:47  snw
+ *   Second phase of REUSE compliance and header reformat
+ *
+ *
+ * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  **/
 
 #include <stddef.h>
@@ -47,7 +51,23 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-#include <termios.h>
+#if !defined(__APPLE__) && !defined(__gnu_hurd__) && !defined(EMSCRIPTEN)
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__AMIGA)
+#  include <termios.h>
+#  if !defined(__AMIGA)
+#   define TCGETA TIOCGETA
+#   define TCSETA TIOCSETA
+#  endif
+#  define termio termios
+# else
+#  if !defined(MSDOS)
+#    include <termio.h>
+#  endif
+# endif
+#else
+# include <termios.h>
+#endif
+
 #include <sys/ioctl.h>
 
 #include "mpsdef.h"
@@ -57,6 +77,8 @@
 #include "jobtab.h"
 #include "shmmgr.h"
 
+
+
 void m_log (int, const char *);
 int pending_signal_type = -1;
 
@@ -100,7 +122,7 @@ void sig_init(void)
 }
 
 
-#if !defined(MSDOS)
+#if !defined(MSDOS) && !defined(__OS2__)
 void onwinch (void)
 {
     struct winsize ws;
@@ -120,6 +142,13 @@ void onwinch (void)
 
     return;
 }
+#else
+void onwinch (void)
+{
+    sig_attach (SIGWINCH, &onwinch);
+
+    return;
+}
 #endif
 
 void onintr (void)