Whamcloud - gitweb
misc: add missing declarations on maint
authorAndreas Dilger <adilger@dilger.ca>
Sun, 6 Mar 2016 00:38:33 +0000 (17:38 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Mar 2016 23:12:06 +0000 (18:12 -0500)
Fix compile warnings for missing declarations on the maint branch.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/util.c
util/subst.c

index 2898830..5a24e7e 100644 (file)
@@ -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
index 91f6d44..db72923 100644 (file)
 #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>