oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: 3fb210fe87f1837fbcad4cfc5628d5e0e7f1071e
parent: 543b0e8ca6ef9201895ce5983d7b40fe3673c362
author: Tim Sedlmeyer <tim@sedlmeyer.org>
date:   Fri, 28 Sep 2018 23:02:54 -0400
Correct #elif statements in emacs.c and var.c to use defined operator
Memacs.c4++--
Mvar.c4++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/emacs.c b/emacs.c
@@ -24,10 +24,10 @@
 #ifdef HAVE_CURSES
 # include <term.h>
 # include <curses.h>
-#elif HAVE_NCURSES
+#elif defined(HAVE_NCURSES)
 # include <term.h>
 # include <ncurses.h>
-#elif HAVE_NCURSESNCURSES
+#elif defined(HAVE_NCURSESNCURSES)
 # include <ncurses/term.h>
 # include <ncurses/ncurses.h>
 #endif
diff --git a/var.c b/var.c
@@ -18,10 +18,10 @@
 #ifdef HAVE_CURSES
 # include <term.h>
 # include <curses.h>
-#elif HAVE_NCURSES
+#elif defined(HAVE_NCURSES)
 # include <term.h>
 # include <ncurses.h>
-#elif HAVE_NCURSESNCURSES
+#elif defined(HAVE_NCURSESNCURSES)
 # include <ncurses/term.h>
 # include <ncurses/ncurses.h>
 #endif