www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/08/17:25:47

From: "Mark E." <snowball3 AT softhome DOT net>
To: djgpp-workers AT delorie DOT com
Date: Wed, 8 Aug 2001 17:25:50 -0400
MIME-Version: 1.0
Subject: SIGWINCH problem
Message-ID: <3B71761E.10494.100F8E@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

Hi folks,

With the TIOCGWINSZ support to take care of detecting the # of rows and 
columns, I encountered another problem.

ncurses/tty/lib_tstp.c now fails with DJGPP to compile because SIGWINCH is 
used.  config.priv.h turns off USE_SIGWINCH if HAVE_SIZECHANGE hasn't been 
defined by the configure script. 

A quick fix to get ncurses to build is to turn off USE_SIGWINCH if 
SIGWINCH isn't defined.

*** lib_tstp.orig	Wed Aug  8 13:11:46 2001
--- lib_tstp.c	Wed Aug  8 15:40:28 2001
*************** MODULE_ID("$Id: lib_tstp.c,v 1.25 2001/0
*** 55,60 ****
--- 55,64 ----
  #define USE_SIGTSTP 0
  #endif
  
+ #if !defined(SIGWINCH)
+ #undef USE_SIGWINCH
+ #endif
+ 
  /*
   * Note: This code is fragile!  Its problem is that different OSs
   * handle restart of system calls interrupted by signals differently.

But I think a better fix would be change the configure script to not have 
USE_SIGWINCH defined in curses.priv.h if SIGWINCH isn't defined.

I forgot to add in the last note that DJGPP can indeed run configure 
scripts (Bash 2.03 and above have been ported and all essential GNU 
tools).

Mark

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019