[patch] hpux support fix for screen-4.0.2
"Jacques, Olivier \(OCBU-Test Infra\)" <[email protected]> Tue, 24 Jan 2006 15:30:57 +0100
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <1AB048BB58C35849AD36CDE65F16C110025E2FF6@idaexc01.emea.cpqcorp.net> |
Hello,
here is a (very small) patch for screen-4.0.2 to re-enable HPUX support
which seems to broke since HPUX 11.00.
The issue has been reported several times on the mailing list:
http://lists.gnu.org/archive/html/screen-users/2005-03/msg00044.html
http://lists.gnu.org/archive/html/screen-users/2005-08/msg00017.html
In case the patch doesn't go through well on the mailing list, it
consists of:
1. In "configure", line 1464, replace the code with:
int
main ()
{
tgetent((char *)0, (char *)0);
;
return 0;
}
2. In "termcap.c", in e_tgetent, line 1337, after r = tgetent(bp,
name);, add:
#ifdef hpux
/* on hpux - tgetent returns 0 if OK, -1 otherwise */
if (r == 0)
r=1;
else
r=0;
#endif
Tested OK on HPUX 11.23/IA64.
Best regards,
Olivier.
screen-4.0.2.hpux.diff
(application/octet-stream, 718 B)
Only in screen-4.0.2: Makefile diff screen-4.0.2/configure screen-4.0.2.hpux.fix/configure 4764,4766d4763 < #ifdef __hpux < __sorry_hpux_libcurses_is_totally_broken_in_10_10(); < #else 4768d4764 < #endif Common subdirectories: screen-4.0.2/doc and screen-4.0.2.hpux.fix/doc Common subdirectories: screen-4.0.2/etc and screen-4.0.2.hpux.fix/etc diff screen-4.0.2/termcap.c screen-4.0.2.hpux.fix/termcap.c 1336a1337,1343 > #ifdef hpux > /* on hpux - tgetent returns 0 if OK, -1 otherwise */ > if (r == 0) > r=1; > else > r=0; > #endif Common subdirectories: screen-4.0.2/terminfo and screen-4.0.2.hpux.fix/terminfo Common subdirectories: screen-4.0.2/utf8encodings and screen-4.0.2.hpux.fix/utf8encodings