From 0735d1e62ad0f1a474b7bd758fe03f2e434f5c40 Mon Sep 17 00:00:00 2001 From: werdl Date: Wed, 28 May 2025 08:42:25 +0100 Subject: Add OpenBSD installation instructions --- README.md | 7 +++++++ src/parser.c | 1 + 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 4cc6100..6cbfd19 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,13 @@ sudo nixos-rebuild switch slackpkg install gcc make libX11 libXinerama +
+OpenBSD +
doas pkg_add gmake
+You will also need the X sets (xbase, xfonts, xserv and xshare) installed. +When you make the code, use gmake instead of make (which will be BSD make). Use the following command to build: gmake CFLAGS+="-I/usr/X11R6/include -Wall -Wextra -O3" -Isrc-j12 LDFLAGS="-L/usr/X11R6/lib -lX11 -lXinerama -lXcursor" +
+ --- ## Build & Install diff --git a/src/parser.c b/src/parser.c index 7cc59d1..0dcc03e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -166,6 +166,7 @@ int parser(Config *cfg) } found: + if (0) {} // label followed by declaration is a C23 extension FILE *f = fopen(path, "r"); if (!f) { fprintf(stderr, "sxwmrc: cannot open %s\n", path); -- cgit v1.2.3