From 4c9ef7d8e93ecb122a65edae0f26c52ab1f01eee Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 18 Feb 2018 14:49:01 -0800 Subject: vis: Fix colors with ncurses-6.1 and COLOR_PAIRS > SHORT_MAX GitHub issue: https://github.com/martanne/vis/pull/672 --- pkg/vis/gen.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg') diff --git a/pkg/vis/gen.lua b/pkg/vis/gen.lua index b72ddf8d..649fd5b0 100644 --- 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', -- cgit v1.2.3