From: Ben Hutchings <ben@decadent.org.uk>
Subject: [PATCH] Remove FreeBSD dependencies

--- ministat.orig/Makefile
+++ ministat/Makefile
@@ -1,9 +1,14 @@
-# $FreeBSD$
 PROG=	ministat
 DPADD=	${LIBM}
 LDADD=	-lm
 
-.include <bsd.prog.mk>
+.CURDIR = $(CURDIR)
+
+$(PROG): $(PROG).c
+	$(CC) -o $@ -Wall $< $(LDADD)
+
+clean:
+	rm -f $(PROG)
 
 test:	${PROG}
 	./${PROG} < ${.CURDIR}/chameleon 
--- ministat.orig/ministat.c
+++ ministat/ministat.c
@@ -8,9 +8,6 @@
  *
  */
 
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
 #include <stdio.h>
 #include <math.h>
 #include <err.h>
@@ -19,7 +16,6 @@
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/queue.h>
-#include <sys/ttycom.h>
 
 #define NSTUDENT 100
 #define NCONF 6
