authorgravatar for hugo.beauzee@datadoghq.comHugo Beauzée-Luyssen <hugo.beauzee@datadoghq.com> 2025-02-05 13:54:17+01:00
committergravatar for hugo.beauzee@datadoghq.comHugo Beauzée-Luyssen <hugo.beauzee@datadoghq.com> 2025-02-06 10:08:12+01:00
log5d2584e53ebefa2727b880ad62e148e016f9860b
tree91a3912f66563dd8e117aa722178499c747e0a4c
parentfdef5c564d0ec96b187b43825d485a33ed52c3c3
signaturebadge-check Signed by SSH key SHA256:f/PN3KBuYCphTMxWTpJsH2vSjX3SRGCBksBuY/gCq10

generic glibc: guard statx declaration

It was added in glibc 2.28

1 files changed, 6 insertions(+), 1 deletions(-)

lib/libc/include/generic-glibc/bits/statx-generic.h+6-1
...@@ -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>
2727
28// zig patch: check target glibc version
29#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2
30
28#ifndef STATX_TYPE31#ifndef STATX_TYPE
29# define STATX_TYPE 0x0001U32# define STATX_TYPE 0x0001U
30# define STATX_MODE 0x0002U33# 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));
6568
66__END_DECLS
\ No newline at end of file
69__END_DECLS
70
71#endif /* (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2 */