summaryrefslogtreecommitdiff
path: root/usr.bin/mg/dir.c
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@cvs.openbsd.org>2015-03-19 21:22:16 +0000
committerBrian Callahan <bcallah@cvs.openbsd.org>2015-03-19 21:22:16 +0000
commit1fb5e81a161f71860b29d58d3c9bb9c453290e6c (patch)
tree95b4b30dc10beab20e60c839b36be84c9c0a4dc0 /usr.bin/mg/dir.c
parent9abab06d318f6fc4ba2ddf1b70766fa48de4fe44 (diff)
Clean up the includes in mg.
This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
Diffstat (limited to 'usr.bin/mg/dir.c')
-rw-r--r--usr.bin/mg/dir.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mg/dir.c b/usr.bin/mg/dir.c
index dbe68e06619..5960b909f3d 100644
--- a/usr.bin/mg/dir.c
+++ b/usr.bin/mg/dir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.c,v 1.27 2014/04/03 20:17:12 lum Exp $ */
+/* $OpenBSD: dir.c,v 1.28 2015/03/19 21:22:15 bcallah Exp $ */
/* This file is in the public domain. */
@@ -9,7 +9,12 @@
* Modified for MG 2a by Mic Kaczmarczik 03-Aug-1987
*/
+#include <sys/queue.h>
#include <sys/stat.h>
+#include <signal.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include "def.h"