From 0df9d1ce0b181d06e00f09486f3dd771ea46de14 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 9 Aug 2016 16:55:12 +0300 Subject: [PATCH] Define NCURSES_CONST if curses library doesn't define it. Signed-off-by: Andrew Borodin --- lib/tty/tty-ncurses.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tty/tty-ncurses.h b/lib/tty/tty-ncurses.h index 4f0e6036c..9962c7c41 100644 --- a/lib/tty/tty-ncurses.h +++ b/lib/tty/tty-ncurses.h @@ -20,6 +20,11 @@ #include #endif /* USE_NCURSESW */ +/* netbsd-libcurses doesn't define NCURSES_CONST */ +#ifndef NCURSES_CONST +#define NCURSES_CONST const +#endif + /*** typedefs(not structures) and defined constants **********************************************/ /*** enums ***************************************************************************************/