| ... | ... | @@ -25,6 +25,9 @@ |
| 25 | 25 | #include <bits/types/struct_statx_timestamp.h> |
| 26 | 26 | #include <bits/types/struct_statx.h> |
| 27 | 27 | |
| 28 | // zig patch: check target glibc version |
| 29 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2 |
| 30 | |
| 28 | 31 | #ifndef STATX_TYPE |
| 29 | 32 | # define STATX_TYPE 0x0001U |
| 30 | 33 | # define STATX_MODE 0x0002U |
| ... | ... | @@ -63,4 +66,6 @@ int statx (int __dirfd, const char *__restrict __path, int __flags, |
| 63 | 66 | unsigned int __mask, struct statx *__restrict __buf) |
| 64 | 67 | __THROW __nonnull ((2, 5)); |
| 65 | 68 | |
| 66 | | __END_DECLS |
| | \ No newline at end of file |
| 69 | __END_DECLS |
| 70 | |
| 71 | #endif /* (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2 */ |