From: Andreas Dilger Date: Sun, 6 Mar 2016 00:38:33 +0000 (-0700) Subject: misc: add missing declarations on maint X-Git-Tag: v1.43-WIP-2016-03-15~22^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fd5374012709bc7dba8a1e80d62048ea48b4dbd;p=thirdparty%2Fe2fsprogs.git 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 --- 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