fstests.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fsstress.c: Add header file stdbool.h
@ 2020-01-07  6:31 Yang Xu
  0 siblings, 0 replies; only message in thread
From: Yang Xu @ 2020-01-07  6:31 UTC (permalink / raw)
  To: yangx.jy, guaneryu; +Cc: fstests, Yang Xu

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




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-07  6:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07  6:31 [PATCH] fsstress.c: Add header file stdbool.h Yang Xu

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).