blob: c12652307c1ffae453086eccbe1743e562379d47 [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001From 42325faa88d64cce799977d611b2792beb154643 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 14 Sep 2015 08:36:59 +0000
4Subject: [PATCH] Include needed headers explicitly
5
6on glibc these headers get pulled in indirectly via other .h files
7but right fix is to include them directly when used
8
9fixes
10
11error: use of undeclared identifier 'PATH_MAX'
12error: called object type 'unsigned int' is not a function or function pointer
13dm_major = major(aux.st_rdev);
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17Upstream-Status: Pending
18
19 common.c | 1 +
20 ioconf.c | 1 +
21 sa_common.c | 1 +
22 3 files changed, 3 insertions(+)
23
24diff --git a/common.c b/common.c
25index a23155b..ad86446 100644
26--- a/common.c
27+++ b/common.c
28@@ -20,6 +20,7 @@
29 */
30
31 #include <stdio.h>
32+#include <limits.h>
33 #include <string.h>
34 #include <stdlib.h>
35 #include <time.h>
36diff --git a/ioconf.c b/ioconf.c
37index 7d88c5d..6d67691 100644
38--- a/ioconf.c
39+++ b/ioconf.c
40@@ -27,6 +27,7 @@
41 #include <errno.h>
42 #include <dirent.h>
43 #include <sys/stat.h>
44+#include <sys/types.h>
45
46 #include "ioconf.h"
47 #include "common.h"
48diff --git a/sa_common.c b/sa_common.c
49index b7351d9..c9e3299 100644
50--- a/sa_common.c
51+++ b/sa_common.c
52@@ -20,6 +20,7 @@
53 */
54
55 #include <stdio.h>
56+#include <limits.h>
57 #include <string.h>
58 #include <stdlib.h>
59 #include <time.h>
60--
612.5.2
62