coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] stat: don't test for STATX_INO until it has been included


From: Pádraig Brady
Subject: Re: [PATCH] stat: don't test for STATX_INO until it has been included
Date: Fri, 14 Jun 2019 22:47:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 14/06/19 19:37, Jeff Layton wrote:
> * STATX_INO isn't defined until stat.h is included. Move the test down
>   so it works properly.
> ---
>  src/stat.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/src/stat.c b/src/stat.c
> index 3bb84f35d4c0..ec0bb7de496c 100644
> --- a/src/stat.c
> +++ b/src/stat.c
> @@ -28,12 +28,6 @@
>  # define USE_STATVFS 0
>  #endif
>  
> -#if HAVE_STATX && defined STATX_INO
> -# define USE_STATX 1
> -#else
> -# define USE_STATX 0
> -#endif
> -
>  #include <stddef.h>
>  #include <stdio.h>
>  #include <stdalign.h>
> @@ -80,6 +74,12 @@
>  #include "find-mount-point.h"
>  #include "xvasprintf.h"
>  
> +#if HAVE_STATX && defined STATX_INO
> +# define USE_STATX 1
> +#else
> +# define USE_STATX 0
> +#endif
> +

Ouch, my bad.
Thanks for double checking.

pushed.

cheers,
Pádraig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]