about summary refs log tree commit diff stats
path: root/src/ui/screen.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/screen.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/screen.c')
-rw-r--r--src/ui/screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/screen.c b/src/ui/screen.c
index 8a676082..a7be6c2a 100644
--- a/src/ui/screen.c
+++ b/src/ui/screen.c
@@ -39,6 +39,8 @@
 #include <ncursesw/ncurses.h>
 #elif HAVE_NCURSES_H
 #include <ncurses.h>
+#elif HAVE_CURSES_H
+#include <curses.h>
 #endif
 
 #include "config/preferences.h"