commit 478408bb73d7af3579bbeac5e34d6d476379bdf5 parent c4df8288b292117372541cfdd872097f45d134b5 Author: amrfti <andrew@kloet.net> Date: Mon, 19 Jan 2026 13:35:53 -0500 update for OpenBSD host Diffstat:
| M | Makefile | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -1,7 +1,13 @@ CC = cc -CFLAGS = -Wall -Wextra -pedantic -std=c99 -D_XOPEN_SOURCE=700 -O3 +CFLAGS = -Wall -Wextra -pedantic -std=gnu99 -D_XOPEN_SOURCE=700 -O3 CURL_LIBS = -lcurl +OS != uname + +.if ${OS} == "OpenBSD" +CFLAGS += -D_BSD_SOURCE +.endif + SOURCES = vidir.c sb-cpu.c sb-date.c sb-memory.c sb-time.c sb-weather.c sb-battery.c EXECUTABLES = $(SOURCES:.c=)