1From 2280f1bcd79a988c95548f65b9e3d7e08ac51b09 Mon Sep 17 00:00:00 2001
2From: Michael Forney <mforney@mforney.org>
3Date: Mon, 18 Apr 2016 01:25:29 -0700
4Subject: [PATCH] fts: Add some includes
5
6---
7 include/fts.h | 2 ++
8 lib/libc/gen/fts.c | 2 ++
9 2 files changed, 4 insertions(+)
10
11diff --git a/include/fts.h b/include/fts.h
12index eaf6be07c6f..a5b3aff91e7 100644
13--- a/include/fts.h
14+++ b/include/fts.h
15@@ -35,6 +35,8 @@
16 #ifndef _FTS_H_
17 #define _FTS_H_
18
19+#include <sys/cdefs.h>
20+
21 typedef struct {
22 struct _ftsent *fts_cur; /* current node */
23 struct _ftsent *fts_child; /* linked list of children */
24diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
25index 77f26d6c27c..86585190a99 100644
26--- a/lib/libc/gen/fts.c
27+++ b/lib/libc/gen/fts.c
28@@ -31,6 +31,7 @@
29
30 #include <sys/param.h> /* ALIGN ALIGNBYTES */
31 #include <sys/stat.h>
32+#include <sys/types.h>
33
34 #include <dirent.h>
35 #include <errno.h>
36@@ -39,6 +40,7 @@
37 #include <limits.h>
38 #include <stdlib.h>
39 #include <string.h>
40+#include <time.h>
41 #include <unistd.h>
42
43 #define MAXIMUM(a, b) (((a) > (b)) ? (a) : (b))
44--
452.35.1
46