Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/zfs-tests/cmd/statx.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
* statx() may be available in the kernel, but not in the libc, so we build
* our own wrapper if we can't link one.
*/
#ifdef HAVE_STATX
#include <sys/stat.h>
#endif

#ifndef __NR_statx
#if defined(__x86_64__)
Expand All @@ -54,9 +57,11 @@
#endif /* __NR_statx */


#ifndef HAVE_STATX
int
statx(int, const char *, int, unsigned int, void *)
__attribute__((weak));
#endif

static inline int
_statx(int fd, const char *path, int flags, unsigned int mask, void *stx)
Expand Down
Loading