diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-01-24 20:15:43 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-01-24 20:15:43 -0800 |
commit | 6a33284b0745880a5e9bf7c78dfb6cadc8bbf28b (patch) | |
tree | 9441259d7f9da51efb46209ecfd2fcdfdf534dfa /src/lcurses/_helpers.c | |
parent | e4f934db6b1f014c22b706781bbf836d3316a672 (diff) | |
download | teliva-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/_helpers.c')
-rw-r--r-- | src/lcurses/_helpers.c | 4 |
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" |