Commit e74f5d50 authored by deuce's avatar deuce
Browse files

Some fixes to all USE_SYSTEM_CURSES to force the vendors curses implementation

even if the build system would like to use ncurses (ie: NetBSD)
parent bde9a4e4
......@@ -3,7 +3,11 @@
#else
# CIOLIB-MT_LIBS += $(UL_PRE)ncurses$(UL_SUF)
#endif
CIOLIB-MT_LIBS += $(UL_PRE)ncurses$(UL_SUF)
ifdef USE_SYSTEM_CURSES
CIOLIB-MT_LIBS += $(UL_PRE)curses$(UL_SUF)
else
CIOLIB-MT_LIBS += $(UL_PRE)ncurses$(UL_SUF)
endif
ifndef NO_X
ifdef STATIC
CIOLIB-MT_LIBS += -L$(X_PATH)$(DIRSEP)lib -lX11
......
......@@ -26,7 +26,9 @@ else
endif
ifeq ($(os),netbsd)
CFLAGS += -DN_CURSES_LIB
ifndef USE_SYSTEM_CURSES
CFLAGS += -DN_CURSES_LIB
endif
endif
$(MTOBJODIR)$(DIRSEP)console$(OFILE).static:
......
......@@ -207,7 +207,7 @@ int try_curses_init(int mode)
cio_api.hidemouse=curs_hidemouse;
cio_api.suspend=curs_suspend;
cio_api.resume=curs_resume;
#ifdef NCURSES_VERSION_MAJOR
#if defined(NCURSES_VERSION_MAJOR) || defined (__NetBSD__)
cio_api.ESCDELAY=&ESCDELAY;
#endif
return(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment