| ... | @@ -25,6 +25,9 @@ | ... | @@ -25,6 +25,9 @@ |
| 25 | #include <bits/types/struct_statx_timestamp.h> | 25 | #include <bits/types/struct_statx_timestamp.h> |
| 26 | #include <bits/types/struct_statx.h> | 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 | #ifndef STATX_TYPE | 31 | #ifndef STATX_TYPE |
| 29 | # define STATX_TYPE 0x0001U | 32 | # define STATX_TYPE 0x0001U |
| 30 | # define STATX_MODE 0x0002U | 33 | # define STATX_MODE 0x0002U |
| ... | @@ -63,4 +66,6 @@ int statx (int __dirfd, const char *__restrict __path, int __flags, | ... | @@ -63,4 +66,6 @@ int statx (int __dirfd, const char *__restrict __path, int __flags, |
| 63 | unsigned int __mask, struct statx *__restrict __buf) | 66 | unsigned int __mask, struct statx *__restrict __buf) |
| 64 | __THROW __nonnull ((2, 5)); | 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 */ |