diff mbox series

[v2] linux: Drop useless include from fstatat.c

Message ID 20221101213608.22458-1-aurelien@aurel32.net
State New
Headers show
Series [v2] linux: Drop useless include from fstatat.c | expand

Commit Message

Aurelien Jarno Nov. 1, 2022, 9:36 p.m. UTC
It is a left-over from previous refactorings.
---
 sysdeps/unix/sysv/linux/fstatat.c | 2 --
 1 file changed, 2 deletions(-)

Sorry, I failed to properly test v1, we need to include <kernel_stat.h>
to get XSTAT_IS_XSTAT64 (which is not the case on the MIPSn64 patch).

Comments

Adhemerval Zanella Netto Nov. 2, 2022, 5:18 p.m. UTC | #1
On 01/11/22 18:36, Aurelien Jarno wrote:
> It is a left-over from previous refactorings.

LGTM, thanks.

Reviewed by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  sysdeps/unix/sysv/linux/fstatat.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> Sorry, I failed to properly test v1, we need to include <kernel_stat.h>
> to get XSTAT_IS_XSTAT64 (which is not the case on the MIPSn64 patch).
> 
> diff --git a/sysdeps/unix/sysv/linux/fstatat.c b/sysdeps/unix/sysv/linux/fstatat.c
> index 055fb4762e..8926eed244 100644
> --- a/sysdeps/unix/sysv/linux/fstatat.c
> +++ b/sysdeps/unix/sysv/linux/fstatat.c
> @@ -21,8 +21,6 @@
>  #include <sysdep.h>
>  
>  #if !XSTAT_IS_XSTAT64
> -# include <kstat_cp.h>
> -
>  int
>  __fstatat (int fd, const char *file, struct stat *buf, int flag)
>  {
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/fstatat.c b/sysdeps/unix/sysv/linux/fstatat.c
index 055fb4762e..8926eed244 100644
--- a/sysdeps/unix/sysv/linux/fstatat.c
+++ b/sysdeps/unix/sysv/linux/fstatat.c
@@ -21,8 +21,6 @@ 
 #include <sysdep.h>
 
 #if !XSTAT_IS_XSTAT64
-# include <kstat_cp.h>
-
 int
 __fstatat (int fd, const char *file, struct stat *buf, int flag)
 {