Mail Archives: djgpp-workers/2001/08/08/17:25:47
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 -