From: Andreas Dilger <adilger@dilger.ca>
To: tytso@mit.edu
Cc: linux-ext4@vger.kernel.org, Andreas Dilger <adilger@dilger.ca>
Subject: [PATCH 3/6] misc: add missing declarations on maint
Date: Sat, 5 Mar 2016 17:38:33 -0700 [thread overview]
Message-ID: <1457224716-72388-3-git-send-email-adilger@dilger.ca> (raw)
In-Reply-To: <1457224716-72388-1-git-send-email-adilger@dilger.ca>
Fix compile warnings for missing declarations on the maint branch.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
---
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
next prev parent reply other threads:[~2016-03-06 0:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-06 0:38 [PATCH 1/6] blkid: fix ZFS device detection Andreas Dilger
2016-03-06 0:38 ` [PATCH 2/6] debugfs: improve dump_mmp handling Andreas Dilger
2016-03-06 23:11 ` Theodore Ts'o
2016-03-06 0:38 ` Andreas Dilger [this message]
2016-03-06 23:12 ` [PATCH 3/6] misc: add missing declarations on maint Theodore Ts'o
2016-03-06 0:38 ` [PATCH 4/6] lsattr: treat inode generation as an unsigned int Andreas Dilger
2016-03-06 23:13 ` Theodore Ts'o
2016-03-06 0:38 ` [PATCH 5/6] findsuper: improve output if s_mkfs_time unset Andreas Dilger
2016-03-06 23:16 ` Theodore Ts'o
2016-03-06 0:38 ` [PATCH 6/6] debugfs: update to handle newer inode fields Andreas Dilger
2016-03-07 0:54 ` Theodore Ts'o
2016-03-06 23:10 ` [PATCH 1/6] blkid: fix ZFS device detection Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1457224716-72388-3-git-send-email-adilger@dilger.ca \
--to=adilger@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).