diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-09-22 10:47:18 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-09-22 10:47:18 +0000 |
commit | 22bd6364c545af06ed2d083cc97cc0322952dce2 (patch) | |
tree | 4ae8627ea28cf5ef7e796b4290ecfdc42e62f789 /devel | |
parent | 0d4ec0f440396c4e667aff08de4839862d81fc0e (diff) | |
download | pkgsrc-22bd6364c545af06ed2d083cc97cc0322952dce2.tar.gz |
Fix build on systems which do not defined KEY_CODE_YES, using KEY_MIN
instead (notably SunOS).
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Curses/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-Curses/patches/patch-CursesFun.c | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/devel/p5-Curses/distinfo b/devel/p5-Curses/distinfo index e15a7ec3fe5..dbe0064b50f 100644 --- a/devel/p5-Curses/distinfo +++ b/devel/p5-Curses/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.14 2014/04/12 09:00:36 wiz Exp $ +$NetBSD: distinfo,v 1.15 2014/09/22 10:47:18 jperkin Exp $ SHA1 (Curses-1.29.tgz) = ebd091c7ffb7805c1eb59e6ed787e5b292c322a3 RMD160 (Curses-1.29.tgz) = c81b9b74c0a126feb4d8d63764f533a278c6ccf6 Size (Curses-1.29.tgz) = 141638 bytes +SHA1 (patch-CursesFun.c) = 0b6ae05b2f2870c7246624188010c602f8aa7e48 diff --git a/devel/p5-Curses/patches/patch-CursesFun.c b/devel/p5-Curses/patches/patch-CursesFun.c new file mode 100644 index 00000000000..e4cb7331720 --- /dev/null +++ b/devel/p5-Curses/patches/patch-CursesFun.c @@ -0,0 +1,19 @@ +$NetBSD: patch-CursesFun.c,v 1.1 2014/09/22 10:47:18 jperkin Exp $ + +Not all curses implementations have KEY_CODE_YES, use KEY_MIN +there instead. XXX: arguably should be default? + +--- CursesFun.c.orig 2014-04-05 17:09:37.000000000 +0000 ++++ CursesFun.c +@@ -6968,7 +6968,11 @@ XS(XS_CURSES_getchar) { + int key = wgetch(win); + if (key == ERR) { + XSRETURN_UNDEF; ++#ifdef KEY_CODE_YES + } else if (key < KEY_CODE_YES) { ++#else ++ } else if (key < KEY_MIN) { ++#endif + ST(0) = sv_newmortal(); + c_wchar2sv(ST(0), key); + XSRETURN(1); |