Skip to content

Commit a4d65ca

Browse files
committed
Low: build: Check for NCURSES_CONST macro definition
We use it in crm_mon_curses.c, but we've never checked for it at build time. Instead, we've always tried to use regular curses (non-ncurses) if ncurses is not available. NCURSES_CONST won't be defined there. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent 05309fa commit a4d65ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ AS_IF([test $found_curses -eq 1 && cc_supports_flag -Wcast-qual], [
13481348
#include PCMK__CURSES_H
13491349
#endif
13501350
],
1351-
[printw((const char *) "Test");]
1351+
[printw((NCURSES_CONST char *) "Test");]
13521352
)],
13531353
[AC_MSG_RESULT([yes])
13541354
PCMK_FEATURES="$PCMK_FEATURES ncurses"

0 commit comments

Comments
 (0)