home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / mail / elm / 3852 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.7 KB  |  67 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!math.fu-berlin.de!fub!obh.in-berlin.de!aeon.in-berlin.de!thomas
  3. From: thomas@aeon.in-berlin.de (Thomas Wolfram)
  4. Subject: Elm 2.4dev PL17, SIGWINCH on ISC 3.0
  5. Message-ID: <BzrpJC.CG@aeon.in-berlin.de>
  6. Keywords: Elm2.4dev,PL17,SIGWINCH,ISC
  7. Organization: Cities in Dust
  8. Date: Thu, 24 Dec 1992 14:28:23 GMT
  9. Lines: 56
  10.  
  11. Hi,
  12. I've compiled Elm 2.4dev PL17 on ISC 3.0 and I encounter following
  13. I had to fix:
  14.  
  15. Elm didn't recognize changing the window size if it was running
  16. within a xterm. I found that there where two problems:
  17.  
  18. - the Configure script prefers the POSIX-style header "termios.h",
  19.   unfortunatly this header doesn't define TIOCGWINSZ on ISC 3.0.
  20.   Hence I changed it manually in config.h for using instead
  21.   "termio.h" and it worked (#define TERMIO)
  22.  
  23. - ISC 3.0 (a SVR3.2 derived system) doesn't restore the signal
  24.   action to the user function by itself, this must be done by
  25.   the signal handler and the SIGWINCH handler in signals.c
  26.   does it not, hence I changed it from:
  27.  
  28. #ifdef SIGWINCH
  29. sighan_type
  30. winch_signal()
  31. {
  32.         resize_screen = 1;
  33. }
  34. #endif
  35.  
  36. to:
  37.  
  38. #ifdef SIGWINCH
  39. sighan_type
  40. winch_signal()
  41. {
  42.         resize_screen = 1;
  43. #ifndef BSD
  44.         signal(SIGWINCH, winch_signal);
  45. #endif
  46.  
  47. }
  48. #endif
  49.  
  50.  
  51. With this little changes Elm 2.4dev PL17 works fine on ISC 3.0.
  52. (I didn't try all the features yet.) Perhaps I should also mention
  53. that I had to use "-lc_s -lcposix -linet" for the libraries and I
  54. used gcc 2.2.2 with -O2 and -fpcc-struct-return in standard (ANSI/GCC)
  55. mode.
  56.  
  57. Maybe this helps someone.
  58.  
  59. BTW, is 2.4dev PL17 the last version? What means that "dev"?
  60.  
  61. Thank you,
  62. Merry Christmas and happy new year,
  63. Thomas
  64. -- 
  65. Thomas Wolfram, thomas@aeon.in-berlin.de
  66. EANTC, TU Berlin, wolf@prz.tu-berlin.de, +49 030 31421294
  67.