summaryrefslogtreecommitdiff
path: root/core/openbsd/patch/0002-fts-Add-some-includes.patch
blob: 2f06ad83ebb95fdd6a6eb5f4c3b5027a3c637eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From bbc201a46b66522423d83f69b1106ad859bcefba Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 18 Apr 2016 01:25:29 -0700
Subject: [PATCH] fts: Add some includes

---
 include/fts.h      | 2 ++
 lib/libc/gen/fts.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/include/fts.h b/include/fts.h
index eaf6be0..a5b3aff 100644
--- a/include/fts.h
+++ b/include/fts.h
@@ -35,6 +35,8 @@
 #ifndef	_FTS_H_
 #define	_FTS_H_
 
+#include <sys/cdefs.h>
+
 typedef struct {
 	struct _ftsent *fts_cur;	/* current node */
 	struct _ftsent *fts_child;	/* linked list of children */
diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
index caf679e..dc6d3d7 100644
--- a/lib/libc/gen/fts.c
+++ b/lib/libc/gen/fts.c
@@ -31,6 +31,7 @@
 
 #include <sys/param.h>	/* ALIGN */
 #include <sys/stat.h>
+#include <sys/types.h>
 
 #include <dirent.h>
 #include <errno.h>
@@ -39,6 +40,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 #include <unistd.h>
 
 #define MAXIMUM(a, b)	(((a) > (b)) ? (a) : (b))
-- 
2.8.1