Fix build under NetBSD older than today's NetBSD-current.
This commit is contained in:
parent
192f955857
commit
2e72b31ba7
2 changed files with 18 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.43 2015/05/28 06:29:10 wiz Exp $
|
||||
$NetBSD: distinfo,v 1.44 2015/05/28 07:50:33 tron Exp $
|
||||
|
||||
SHA1 (dialog-1.2-20150513.tgz) = 62a76ea7e8a205c4a20e265c34c1b7674fbe0e34
|
||||
RMD160 (dialog-1.2-20150513.tgz) = a59d3de306ff24add3f00db305b74bb0b07fd860
|
||||
Size (dialog-1.2-20150513.tgz) = 497554 bytes
|
||||
SHA1 (patch-trace.c) = 9ada0df3808c2814404bc30933ec9d159d560265
|
||||
|
|
16
misc/dialog/patches/patch-trace.c
Normal file
16
misc/dialog/patches/patch-trace.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
$NetBSD: patch-trace.c,v 1.1 2015/05/28 07:50:33 tron Exp $
|
||||
|
||||
Fix build failure caused by bad definition of "wunctrl" macro under NetBSD
|
||||
which has been fixed in NetBSD-current.
|
||||
|
||||
--- trace.c.orig 2011-10-18 11:47:26.000000000 +0100
|
||||
+++ trace.c 2015-05-28 08:47:19.000000000 +0100
|
||||
@@ -93,7 +93,7 @@
|
||||
wchar_t *uc;
|
||||
|
||||
if (win_wch(win, &cch) == ERR
|
||||
- || (uc = wunctrl(&cch)) == 0
|
||||
+ || (uc = wunctrl((&cch))) == 0
|
||||
|| uc[1] != 0
|
||||
|| wcwidth(uc[0]) <= 0) {
|
||||
buffer[0] = '.';
|
Loading…
Reference in a new issue