aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-08-30 01:20:38 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-08-30 01:20:38 +0200
commitbef87acd0d0e22ba4689be6f1c39ce2d90812317 (patch)
tree57e611e8c3b1b396e001b047084a2ef8917bc584
parent1bb7398f4b9e38e1c42157717a9dc420bc645d2d (diff)
downloadst-bef87acd0d0e22ba4689be6f1c39ce2d90812317.tar.gz
st-bef87acd0d0e22ba4689be6f1c39ce2d90812317.tar.bz2
st should compile on NetBSD.
-rw-r--r--config.mk1
-rw-r--r--st.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index b41a949..f0c7e2e 100644
--- a/config.mk
+++ b/config.mk
@@ -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
index 436533c..af3ec6d 100644
--- a/st.c
+++ b/st.c
@@ -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>