summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-04-01 18:44:48 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2020-04-01 19:43:45 (GMT)
commitcb6a910ab89befef46ebb6251a9800110bbd5c08 (patch)
tree643e28f5c7eaf0266512bac78a28a29d3599709b /libc/sysdeps/linux
parent440e6c1197636a1dc0ae413fca815254a71d2a27 (diff)
statx: make include conditional, fixes non-csky arch buildroot builds
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/statx_cp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/statx_cp.c b/libc/sysdeps/linux/common/statx_cp.c
index 1a6253b..9f024ee 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
<http://www.gnu.org/licenses/>. */
+#include <bits/uClibc_arch_features.h>
#include <stddef.h>
#include <string.h>
#include <sys/stat.h>
+#if defined __UCLIBC_HAVE_STATX__
+
#include <statx_cp.h>
#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