Browse Source

statx: make include conditional, fixes non-csky arch buildroot builds

Waldemar Brodkorb 4 years ago
parent
commit
d987468fdc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ldso/include/dl-syscall.h

+ 3 - 0
ldso/include/dl-syscall.h

@@ -40,6 +40,8 @@ extern int _dl_errno;
 #include <sys/stat.h>
 #include <dl-string.h>
 
+#include <bits/uClibc_arch_features.h>
+#if defined __UCLIBC_HAVE_STATX__
 static __always_inline void
 __cp_stat_statx (struct stat *to, struct statx *from)
 {
@@ -64,6 +66,7 @@ __cp_stat_statx (struct stat *to, struct statx *from)
   to->st_blksize = from->stx_blksize;
 }
 #endif
+#endif
 
 #define AT_NO_AUTOMOUNT       0x800
 #define AT_EMPTY_PATH         0x1000