get Teliva running on NetBSD
NetBSD still uses curses by default. One _could_ install ncurses, but I don't have access to a NetBSD box with permissions to install ncurses, so I'm experimenting to see how far we can get with just curses. So far most of the apps seem to work, with the exception of one bug that I'll commit next.
This commit is contained in:
parent
e4f934db6b
commit
6a33284b07
|
@ -119,7 +119,7 @@ netbsd:
|
|||
$(MAKE) -C lcurses CC="$(CC)" CFLAGS="$(CFLAGS)"
|
||||
$(MAKE) -C luasocket bsd
|
||||
$(MAKE) -C luasec bsd
|
||||
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -lncurses"
|
||||
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E -lcurses"
|
||||
|
||||
posix:
|
||||
$(MAKE) all MYCFLAGS=-DLUA_USE_POSIX
|
||||
|
|
|
@ -37,7 +37,11 @@
|
|||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#ifdef __NetBSD__
|
||||
#include <curses.h>
|
||||
#else
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
|
||||
|
||||
#include <ctype.h>
|
||||
#ifdef __NetBSD__
|
||||
#include <curses.h>
|
||||
#else
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -21,7 +21,11 @@
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h> /* for _POSIX_VERSION */
|
||||
|
||||
#ifdef __NetBSD__
|
||||
#include <curses.h>
|
||||
#else
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
#include <term.h>
|
||||
|
||||
#include "../lua.h"
|
||||
|
|
|
@ -6,7 +6,11 @@
|
|||
|
||||
|
||||
#include <locale.h>
|
||||
#ifdef __NetBSD__
|
||||
#include <curses.h>
|
||||
#else
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#ifdef __NetBSD__
|
||||
#include <curses.h>
|
||||
#else
|
||||
#include <ncurses.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
|
Loading…
Reference in New Issue