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.1~11^2~9 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=7fd537401270;p=tools%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 2898830..5a24e7e 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 91f6d44..db72923 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