diff --git a/tests/zfs-tests/cmd/statx.c b/tests/zfs-tests/cmd/statx.c index 89939f6efb40..1acc7e58c5ce 100644 --- a/tests/zfs-tests/cmd/statx.c +++ b/tests/zfs-tests/cmd/statx.c @@ -109,6 +109,9 @@ _statx(int fd, const char *path, int flags, unsigned int mask, void *stx) #ifndef STATX_DIOALIGN #define STATX_DIOALIGN (1<<13) #endif +#ifndef S_IFMT +#define S_IFMT 0170000 +#endif typedef struct { int64_t tv_sec;