From 7fd5374012709bc7dba8a1e80d62048ea48b4dbd Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Sat, 5 Mar 2016 17:38:33 -0700 Subject: [PATCH] misc: add missing declarations on maint Fix compile warnings for missing declarations on the maint branch. Signed-off-by: Andreas Dilger Signed-off-by: Theodore Ts'o --- misc/util.c | 3 +++ util/subst.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/misc/util.c b/misc/util.c index 289883061..5a24e7e56 100644 --- a/misc/util.c +++ b/misc/util.c @@ -21,6 +21,9 @@ #ifdef HAVE_ERRNO_H #include #endif +#if HAVE_UNISTD_H +#include +#endif #ifdef HAVE_LINUX_MAJOR_H #include #endif diff --git a/util/subst.c b/util/subst.c index 91f6d449a..db729234f 100644 --- a/util/subst.c +++ b/util/subst.c @@ -19,8 +19,12 @@ #ifdef HAVE_SYS_TIME_H #include #endif +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_SYS_STAT_H #include +#endif #include #include #include -- 2.47.2