From: Ben Hutchings <ben@decadent.org.uk>
Subject: [PATCH] Remove FreeBSD dependencies
Date: Sun, 04 Jan 2026 12:00:45 +0100
Forwarded: not-needed

--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,13 @@ PROG=	ministat
 
 LIBADD=	m
 
-.include <bsd.prog.mk>
+.CURDIR = $(CURDIR)
+
+$(PROG): $(PROG).c
+	$(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -Wall $< $(LDFLAGS) $(patsubst %,-l%,$(LIBADD))
+
+clean:
+	rm -f $(PROG)
 
 test:	${PROG}
 	./${PROG} < ${.CURDIR}/chameleon
--- a/ministat.c
+++ b/ministat.c
@@ -10,10 +10,8 @@
  *
  */
 
-#include <sys/capsicum.h>
 #include <sys/ioctl.h>
 #include <sys/queue.h>
-#include <sys/ttycom.h>
 
 #include <assert.h>
 #include <capsicum_helpers.h>
