[v2] linux: Drop useless include from fstatat.c
Checks
Context |
Check |
Description |
dj/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
dj/TryBot-32bit |
success
|
Build for i686
|
Commit Message
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
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)
> {
@@ -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)
{