From cb6a910ab89befef46ebb6251a9800110bbd5c08 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 1 Apr 2020 20:44:48 +0200 Subject: statx: make include conditional, fixes non-csky arch buildroot builds --- libc/sysdeps/linux/common/statx_cp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/common/statx_cp.c b/libc/sysdeps/linux/common/statx_cp.c index 1a6253b4d..9f024eec8 100644 --- a/libc/sysdeps/linux/common/statx_cp.c +++ b/libc/sysdeps/linux/common/statx_cp.c @@ -15,10 +15,13 @@ License along with the GNU C Library. If not, see . */ +#include #include #include #include +#if defined __UCLIBC_HAVE_STATX__ + #include #if !defined(__NR_fstat64) || !defined(__NR_fstatat64) @@ -70,3 +73,4 @@ __cp_stat_statx (struct stat *to, struct statx *from) to->st_blksize = from->stx_blksize; } #endif +#endif -- cgit v1.2.3