Fix compile warnings for missing declarations on the maint branch. Signed-off-by: Andreas Dilger <adilger@xxxxxxxxx> --- misc/util.c | 3 +++ util/subst.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/misc/util.c b/misc/util.c index 2898830..5a24e7e 100644 --- a/misc/util.c +++ b/misc/util.c @@ -21,6 +21,9 @@ #ifdef HAVE_ERRNO_H #include <errno.h> #endif +#if HAVE_UNISTD_H +#include <unistd.h> +#endif #ifdef HAVE_LINUX_MAJOR_H #include <linux/major.h> #endif diff --git a/util/subst.c b/util/subst.c index 91f6d44..db72923 100644 --- a/util/subst.c +++ b/util/subst.c @@ -19,8 +19,12 @@ #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H #include <sys/stat.h> +#endif #include <fcntl.h> #include <time.h> #include <utime.h> -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html