--- freem/src/sighnd.c	2025/03/24 00:34:30	1.4
+++ freem/src/sighnd.c	2025/03/24 04:15:25	1.6
@@ -1,5 +1,5 @@
 /*
- *   $Id: sighnd.c,v 1.4 2025/03/24 00:34:30 snw Exp $
+ *   $Id: sighnd.c,v 1.6 2025/03/24 04:15:25 snw Exp $
  *    FreeM signal handlers 
  *
  *  
@@ -24,6 +24,12 @@
  *   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
  *
@@ -116,7 +122,7 @@ void sig_init(void)
 }
 
 
-#if !defined(MSDOS)
+#if !defined(MSDOS) && !defined(__OS2__)
 void onwinch (void)
 {
     struct winsize ws;
@@ -136,6 +142,13 @@ void onwinch (void)
 
     return;
 }
+#else
+void onwinch (void)
+{
+    sig_attach (SIGWINCH, &onwinch);
+
+    return;
+}
 #endif
 
 void onintr (void)