about summary refs log tree commit diff stats
path: root/src/ui/core.c
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/ui/core.c
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/ui/core.c')
-rw-r--r--src/ui/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index d4893f67..4bbb23de 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -55,6 +55,8 @@
 #include <ncursesw/ncurses.h>
 #elif HAVE_NCURSES_H
 #include <ncurses.h>
+#elif HAVE_CURSES_H
+#include <curses.h>
 #endif
 
 #include "log.h"
37 38 39 40 41 42 43 44