ltp/fsstress: Add header file stdbool.h
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Tue, 7 Jan 2020 06:31:26 +0000 (14:31 +0800)
committerEryu Guan <guaneryu@gmail.com>
Wed, 8 Jan 2020 05:33:46 +0000 (13:33 +0800)
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>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
ltp/fsstress.c

index c5a59d5151b68760691c10a8643b1be5a67b21d8..709fdeec7f0d19acbd6b863c8a04c0988afe593c 100644 (file)
@@ -8,6 +8,7 @@
 #include <setjmp.h>
 #include <sys/uio.h>
 #include <stddef.h>
+#include <stdbool.h>
 #include "global.h"
 
 #ifdef HAVE_BTRFSUTIL_H