summaryrefslogtreecommitdiff
path: root/pkg/vis/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-02-18 14:49:01 -0800
committerMichael Forney <mforney@mforney.org>2018-02-18 14:49:13 -0800
commit4c9ef7d8e93ecb122a65edae0f26c52ab1f01eee (patch)
treeeb27c07a2154844040cc7aab32e9bd4f4378d952 /pkg/vis/gen.lua
parentec1ab5dc0d425270d71f6c0a892b206eca8e5230 (diff)
vis: Fix colors with ncurses-6.1 and COLOR_PAIRS > SHORT_MAX
GitHub issue: https://github.com/martanne/vis/pull/672
Diffstat (limited to 'pkg/vis/gen.lua')
-rw-r--r--pkg/vis/gen.lua1
1 files changed, 1 insertions, 0 deletions
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',