diff mbox series

fsstress.c: Add header file stdbool.h

Message ID 1578378686-22832-1-git-send-email-xuyang2018.jy@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show
Series fsstress.c: Add header file stdbool.h | expand

Commit Message

Yang Xu Jan. 7, 2020, 6:31 a.m. UTC
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 mbox series

Patch

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