summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/df/ext2fs_df.c8
-rw-r--r--bin/df/ffs_df.c7
-rw-r--r--bin/df/lfs_df.c10
3 files changed, 17 insertions, 8 deletions
diff --git a/bin/df/ext2fs_df.c b/bin/df/ext2fs_df.c
index fbd22cdecf1..a92e56053b4 100644
--- a/bin/df/ext2fs_df.c
+++ b/bin/df/ext2fs_df.c
@@ -40,13 +40,15 @@
* @(#)ffs_vfsops.c 8.14 (Berkeley) 11/28/94
*/
-#include <unistd.h>
-#include <fcntl.h>
#include <sys/param.h>
#include <sys/mount.h>
-#include <fstab.h>
#include <ufs/ext2fs/ext2fs.h>
#include <ufs/ext2fs/ext2fs_dinode.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <fcntl.h>
+#include <fstab.h>
int e2fs_df __P((int, char *, struct statfs *));
diff --git a/bin/df/ffs_df.c b/bin/df/ffs_df.c
index 88778f996f0..412eb6829c6 100644
--- a/bin/df/ffs_df.c
+++ b/bin/df/ffs_df.c
@@ -42,13 +42,16 @@ static char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#include <unistd.h>
-#include <fcntl.h>
#include <sys/param.h>
#include <sys/mount.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <fcntl.h>
+
int ffs_df __P((int, char *, struct statfs *));
extern int bread __P((int, off_t, void *, int));
diff --git a/bin/df/lfs_df.c b/bin/df/lfs_df.c
index cf6121462f5..34902cddf0a 100644
--- a/bin/df/lfs_df.c
+++ b/bin/df/lfs_df.c
@@ -37,15 +37,19 @@
* @(#)lfs_vfsops.c 8.20 (Berkeley) 6/10/95
*/
-#include <unistd.h>
-#include <fcntl.h>
#include <sys/param.h>
#include <sys/mount.h>
-#include <fstab.h>
+
#include <ufs/ufs/quota.h>
#include <ufs/ufs/dinode.h>
#include <ufs/lfs/lfs.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <fcntl.h>
+#include <fstab.h>
+
int lfs_df __P((int, char *, struct statfs *));
extern int bread __P((int, off_t, void *, int));