Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -3,7 +3,11 @@
#else
# CIOLIB-MT_LIBS += $(UL_PRE)ncurses$(UL_SUF)
#endif
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,8 +26,10 @@ else
endif
ifeq ($(os),netbsd)
ifndef USE_SYSTEM_CURSES
CFLAGS += -DN_CURSES_LIB
endif
endif
$(MTOBJODIR)$(DIRSEP)console$(OFILE).static:
$(QUIET)$(DELETE) $(MTOBJODIR)$(DIRSEP)console$(OFILE)*
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment