commit: 4c9ef7d8e93ecb122a65edae0f26c52ab1f01eee
parent ec1ab5dc0d425270d71f6c0a892b206eca8e5230
Author: Michael Forney <mforney@mforney.org>
Date: Sun, 18 Feb 2018 14:49:01 -0800
vis: Fix colors with ncurses-6.1 and COLOR_PAIRS > SHORT_MAX
GitHub issue: https://github.com/martanne/vis/pull/672
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/vis/gen.lua b/pkg/vis/gen.lua
@@ -11,6 +11,7 @@ cflags{
'-D HAVE_MEMRCHR=1',
'-D _POSIX_C_SOURCE=200809L',
'-D _XOPEN_SOURCE=700',
+ [[-D 'MAX_COLOR_PAIRS=MIN(COLOR_PAIRS, SHRT_MAX)']],
[[-D 'VERSION="$version"']],
[[-D 'VIS_PATH="/share/vis"']],
'-D NDEBUG',