Compiling ST (suckless terminal) on NetBSD 10.1
----
I'm somewhat of a fan of the suckless tools, as well as the philosophy.
For that reason, st has been my goto terminal emulator for a few years.
Installing a new machine, a few days ago, with NetBSD 10.1 had me compiling
st once more. When compiling it on NetBSD there's usually a few small
things you need to change first. Nothing big, but still annoying enough
to have to re-figure out everytime.
So this time I thought I'd document it for my former me.
I exported a small patch if that's someting you wanna use
instead: https://ti-l.de/assets/st.netbsd10-1.patch
diff --git a/config.def.h b/config.def.h
index 2cd740a..e6c6c54 100644
--- a/config.def.h
+++ b/config.def.h
@@ -132,7 +132,7 @@ static const char *colorname[] = {
unsigned int defaultfg = 258;
unsigned int defaultbg = 259;
unsigned int defaultcs = 256;
-static unsigned int defaultrcs = 257;
+unsigned int defaultrcs = 257;
/*
* Default shape of cursor
diff --git a/config.mk b/config.mk
index fdc29a7..4e7d14d 100644
--- a/config.mk
+++ b/config.mk
@@ -7,8 +7,8 @@ VERSION = 0.9.2
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = /usr/X11R7/include
+X11LIB = /usr/X11R7/lib
PKG_CONFIG = pkg-config