| tst should compile on NetBSD. - st - [fork] customized build of st, the simple … | |
| git clone git://src.adamsgaard.dk/st | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit bef87acd0d0e22ba4689be6f1c39ce2d90812317 | |
| parent 1bb7398f4b9e38e1c42157717a9dc420bc645d2d | |
| Author: Aurélien Aptel <[email protected]> | |
| Date: Mon, 30 Aug 2010 01:20:38 +0200 | |
| st should compile on NetBSD. | |
| Diffstat: | |
| M config.mk | 1 + | |
| M st.c | 2 +- | |
| 2 files changed, 2 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/config.mk b/config.mk | |
| t@@ -19,6 +19,7 @@ SYSTEM = -D`uname | tr a-z A-Z` | |
| #SYSTEM = -DLINUX | |
| #SYSTEM = -DOPENBSD | |
| #SYSTEM = -DFREEBSD | |
| +#SYSTEM = -DNETBSD | |
| # flags | |
| CPPFLAGS = -DVERSION=\"${VERSION}\" ${SYSTEM} | |
| diff --git a/st.c b/st.c | |
| t@@ -22,7 +22,7 @@ | |
| #if defined(LINUX) | |
| #include <pty.h> | |
| -#elif defined(OPENBSD) | |
| +#elif defined(OPENBSD) || defined(NETBSD) | |
| #include <util.h> | |
| #elif defined(FREEBSD) | |
| #include <libutil.h> |