From 4aefe3dae0124582cd459575b032dc56a069fc88 Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 5 Sep 2022 14:40:41 -0700 Subject: [PATCH] curses A_ITALIC build fix My /usr/include/curses.h has various A_attribute macros but A_ITALIC isn't one of them. Compiling cursmisc.c failed because one of the uses of that wasn't guarded by #ifdef A_ITALIC. Instead of adding the ommitted #if, substitute A_UNDERLINE for A_ITALIC when that's missing. The select attribute menu when adding a menu color or a status hilite now shows an entry for italic that's underlined (as expected) but the underline entry itself does not display any sort of attribute. I didn't pursue that. --- win/curses/cursmisc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win/curses/cursmisc.c b/win/curses/cursmisc.c index dc8447986..1780a8f76 100644 --- a/win/curses/cursmisc.c +++ b/win/curses/cursmisc.c @@ -12,6 +12,10 @@ #include +#ifndef A_ITALIC +#define A_ITALIC A_UNDERLINE +#endif + /* Misc. curses interface functions */ /* Private declarations */