diff options
author | nia <nia@netbsd.org> | 2020-09-04 12:55:20 +0200 |
---|---|---|
committer | nia <nia@netbsd.org> | 2020-09-04 12:55:20 +0200 |
commit | 52e9be4abc7b0de357bc73d2e88696a97de7e4db (patch) | |
tree | 5566787dd84d648afe8dfa779c55c721b4250551 /src | |
parent | 4f1caeca1ed1f66fd747d9cd67fa5ed90c2bb475 (diff) | |
download | profani-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')
-rw-r--r-- | src/common.c | 2 | ||||
-rw-r--r-- | src/config/color.c | 2 | ||||
-rw-r--r-- | src/config/theme.c | 2 | ||||
-rw-r--r-- | src/ui/buffer.c | 2 | ||||
-rw-r--r-- | src/ui/console.c | 2 | ||||
-rw-r--r-- | src/ui/core.c | 2 | ||||
-rw-r--r-- | src/ui/inputwin.c | 2 | ||||
-rw-r--r-- | src/ui/screen.c | 2 | ||||
-rw-r--r-- | src/ui/statusbar.c | 2 | ||||
-rw-r--r-- | src/ui/win_types.h | 2 | ||||
-rw-r--r-- | src/ui/window.c | 2 | ||||
-rw-r--r-- | src/ui/window.h | 2 |
12 files changed, 24 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 5825c0ca..d339a37a 100644 --- a/src/common.c +++ b/src/common.c @@ -54,6 +54,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "log.h" 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" diff --git a/src/ui/buffer.c b/src/ui/buffer.c index f78168ac..58399a69 100644 --- a/src/ui/buffer.c +++ b/src/ui/buffer.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 "ui/window.h" diff --git a/src/ui/console.c b/src/ui/console.c index bd149f3d..a9966bcd 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -42,6 +42,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "common.h" 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" diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 45cd3313..44a1ac47 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -52,6 +52,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "profanity.h" 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" diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c index 146cc1ea..3dfdf086 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -44,6 +44,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "config/theme.h" diff --git a/src/ui/win_types.h b/src/ui/win_types.h index d4196111..7beaca5f 100644 --- a/src/ui/win_types.h +++ b/src/ui/win_types.h @@ -45,6 +45,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "tools/autocomplete.h" diff --git a/src/ui/window.c b/src/ui/window.c index 06194012..860633de 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -48,6 +48,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "log.h" diff --git a/src/ui/window.h b/src/ui/window.h index 17316b05..c731d19b 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -45,6 +45,8 @@ #include <ncursesw/ncurses.h> #elif HAVE_NCURSES_H #include <ncurses.h> +#elif HAVE_CURSES_H +#include <curses.h> #endif #include "ui/ui.h" |