diff mbox

fsx.c: Add header file stdbool.h

Message ID 1453190428-7379-1-git-send-email-yangx.jy@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Xiao Yang Jan. 19, 2016, 8 a.m. UTC
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>
---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Eric Sandeen Jan. 21, 2016, 3:28 a.m. UTC | #1
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
> 
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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