Revisão | cb6a910ab89befef46ebb6251a9800110bbd5c08 (tree) |
---|---|
Hora | 2020-04-02 04:43:45 |
Autor | Waldemar Brodkorb <wbx@open...> |
Commiter | Waldemar Brodkorb |
statx: make include conditional, fixes non-csky arch buildroot builds
@@ -393,9 +393,11 @@ extern int futimens (int __fd, const struct timespec __times[2]) __THROW; | ||
393 | 393 | #undef _MKNOD_VER |
394 | 394 | #define _MKNOD_VER 0 |
395 | 395 | |
396 | +#ifdef __UCLIBC_HAVE_STATX__ | |
396 | 397 | #ifdef __USE_GNU |
397 | 398 | # include <bits/statx.h> |
398 | 399 | #endif |
400 | +#endif | |
399 | 401 | |
400 | 402 | |
401 | 403 | __END_DECLS |
@@ -15,10 +15,13 @@ | ||
15 | 15 | License along with the GNU C Library. If not, see |
16 | 16 | <http://www.gnu.org/licenses/>. */ |
17 | 17 | |
18 | +#include <bits/uClibc_arch_features.h> | |
18 | 19 | #include <stddef.h> |
19 | 20 | #include <string.h> |
20 | 21 | #include <sys/stat.h> |
21 | 22 | |
23 | +#if defined __UCLIBC_HAVE_STATX__ | |
24 | + | |
22 | 25 | #include <statx_cp.h> |
23 | 26 | |
24 | 27 | #if !defined(__NR_fstat64) || !defined(__NR_fstatat64) |
@@ -70,3 +73,4 @@ __cp_stat_statx (struct stat *to, struct statx *from) | ||
70 | 73 | to->st_blksize = from->stx_blksize; |
71 | 74 | } |
72 | 75 | #endif |
76 | +#endif |