aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authornia <nia@netbsd.org>2020-09-04 12:55:20 +0200
committernia <nia@netbsd.org>2020-09-04 12:55:20 +0200
commit52e9be4abc7b0de357bc73d2e88696a97de7e4db (patch)
tree5566787dd84d648afe8dfa779c55c721b4250551 /src/config
parent4f1caeca1ed1f66fd747d9cd67fa5ed90c2bb475 (diff)
downloadprofani-tty-52e9be4abc7b0de357bc73d2e88696a97de7e4db.tar.gz
Basic support for building on NetBSD.
- Add NetBSD as a recognized platform without -ldl. - Allow building with NetBSD libcurses instead of ncurses. - Portability to NetBSD sh - use POSIX '=' instead of '=='.
Diffstat (limited to 'src/config')
-rw-r--r--src/config/color.c2
-rw-r--r--src/config/theme.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/color.c b/src/config/color.c
index 790febc7..63089fd8 100644
--- a/src/config/color.c
+++ b/src/config/color.c
@@ -46,6 +46,8 @@
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
+#elif HAVE_CURSES_H
+#include <curses.h>
#endif
#include "config/color.h"
diff --git a/src/config/theme.c b/src/config/theme.c
index 147b31c2..2ec256ad 100644
--- a/src/config/theme.c
+++ b/src/config/theme.c
@@ -45,6 +45,8 @@
#include <ncursesw/ncurses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
+#elif HAVE_CURSES_H
+#include <curses.h>
#endif
#include "common.h"