diff options
author | tonnerre <tonnerre> | 2008-04-04 21:09:16 +0000 |
---|---|---|
committer | tonnerre <tonnerre> | 2008-04-04 21:09:16 +0000 |
commit | 0792e2dc1242c245829e94cd728dd35c39e163a2 (patch) | |
tree | 609971ab4ffbf02fe64929a08f844fadc817c7e0 /misc/screen/patches/patch-ak | |
parent | 08bcfd409f110ddd5f9cd6801d6c627ac375525c (diff) | |
download | pkgsrc-0792e2dc1242c245829e94cd728dd35c39e163a2.tar.gz |
Include curses header for screen configure script when testing tgetent
in order to prevent crash on 64-bit architectures. Otherwise the result
of termcap/terminfo detection is wrong, causing the infamous "bad format 'p'"
messages, or "OOPSOOPSOOPS" when SSHing from MacOS.
Fixes PR 33808
Approved-by: joerg
Diffstat (limited to 'misc/screen/patches/patch-ak')
-rw-r--r-- | misc/screen/patches/patch-ak | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/misc/screen/patches/patch-ak b/misc/screen/patches/patch-ak index 37f91156241..cb5b24060cb 100644 --- a/misc/screen/patches/patch-ak +++ b/misc/screen/patches/patch-ak @@ -1,8 +1,20 @@ -$NetBSD: patch-ak,v 1.3 2004/06/16 21:35:00 christos Exp $ +$NetBSD: patch-ak,v 1.4 2008/04/04 21:09:16 tonnerre Exp $ + +Include curses header when testing tgetent in order to prevent +crash on 64-bit architectures. --- configure.orig 2003-12-05 08:46:53.000000000 -0500 +++ configure 2004-06-16 16:12:06.000000000 -0400 -@@ -5572,9 +5572,15 @@ +@@ -4925,6 +4925,8 @@ + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ + ++#include <curses.h> ++ + main() + { + exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1); +@@ -5572,9 +5574,15 @@ #include <time.h> /* to get time_t on SCO */ #include <sys/types.h> @@ -19,7 +31,7 @@ $NetBSD: patch-ak,v 1.3 2004/06/16 21:35:00 christos Exp $ #else #include <utmp.h> #endif -@@ -7502,6 +7508,148 @@ +@@ -7502,6 +7510,148 @@ fi |