about summary refs log tree commit diff stats
path: root/src/lcurses
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-24 20:15:43 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-24 20:15:43 -0800
commit6a33284b0745880a5e9bf7c78dfb6cadc8bbf28b (patch)
tree9441259d7f9da51efb46209ecfd2fcdfdf534dfa /src/lcurses
parente4f934db6b1f014c22b706781bbf836d3316a672 (diff)
downloadteliva-6a33284b0745880a5e9bf7c78dfb6cadc8bbf28b.tar.gz
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.
Diffstat (limited to 'src/lcurses')
-rw-r--r--src/lcurses/_helpers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lcurses/_helpers.c b/src/lcurses/_helpers.c
index c2a30b2..78457d6 100644
--- a/src/lcurses/_helpers.c
+++ b/src/lcurses/_helpers.c
@@ -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"