about summary refs log tree commit diff stats
path: root/src/teliva.c
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/teliva.c
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/teliva.c')
-rw-r--r--src/teliva.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/teliva.c b/src/teliva.c
index e3707b3..39a1d76 100644
--- a/src/teliva.c
+++ b/src/teliva.c
@@ -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>