Re: [PATCH] fsx.c: Add header file stdbool.h

Eric Sandeen
2016-01-21T03:28:06Z

On 1/19/16 2:00 AM, Xiao Yang wrote:
> Compilation failed on RHEL6.7GA because stdbool.h is not included in
> xfs/platform_defs-x86_64.h or xfs/linux.h on RHEL6.7GA, so fix it.
>
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>

I hit this as well, thanks.

Reviewed-by: Eric Sandeen <sandeen@redhat.com>

> ---
> ltp/fsx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/ltp/fsx.c b/ltp/fsx.c
> index 28f109c..a7b36c1 100644
> --- a/ltp/fsx.c
> +++ b/ltp/fsx.c
> @@ -20,6 +20,7 @@
> #include <strings.h>
> #include <sys/file.h>
> #include <sys/mman.h>
> +#include <stdbool.h>
> #ifdef HAVE_ERR_H
> #include <err.h>
> #endif
>