From: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
To: <yangx.jy@cn.fujitsu.com>, <guaneryu@gmail.com>
Cc: <fstests@vger.kernel.org>, Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Subject: [PATCH] fsstress.c: Add header file stdbool.h
Date: Tue, 7 Jan 2020 14:31:26 +0800 [thread overview]
Message-ID: <1578378686-22832-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> (raw)
Compilation failed on Fedora 20 because stdbool.h is not included
in xfs/platform_defs-x86_64.h or xfs/linux.h on Fedora 20.
Also, yang xiao fixed similar problem(commit 234f51ebbd) for fsx.c in
2016.2, but after that, fsstress.c started to use bool variable without
including stdbool.h file. It may fail on old linux distributions, so
fix it.
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
ltp/fsstress.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ltp/fsstress.c b/ltp/fsstress.c
index c5a59d51..709fdeec 100644
--- a/ltp/fsstress.c
+++ b/ltp/fsstress.c
@@ -8,6 +8,7 @@
#include <setjmp.h>
#include <sys/uio.h>
#include <stddef.h>
+#include <stdbool.h>
#include "global.h"
#ifdef HAVE_BTRFSUTIL_H
--
2.18.0
reply other threads:[~2020-01-07 6:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1578378686-22832-1-git-send-email-xuyang2018.jy@cn.fujitsu.com \
--to=xuyang2018.jy@cn.fujitsu.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=yangx.jy@cn.fujitsu.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.