mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-23 15:04:59 +03:00
tests: fix S_IFMT
undeclared at statx.c
`S_IFMT` is declared in `sys/stat.h`, but we cannot include this header because it redeclares the `statx` function with different argument types. Therefore, we define `S_IFMT` ourselves, in the same way as the other definitions. Reviewed-by: Rob Norris <robn@despairlabs.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com> Closes #17293 Closes #17294
This commit is contained in:
parent
a6cca8a7da
commit
634c172ee8
@ -109,6 +109,9 @@ _statx(int fd, const char *path, int flags, unsigned int mask, void *stx)
|
|||||||
#ifndef STATX_DIOALIGN
|
#ifndef STATX_DIOALIGN
|
||||||
#define STATX_DIOALIGN (1<<13)
|
#define STATX_DIOALIGN (1<<13)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef S_IFMT
|
||||||
|
#define S_IFMT 0170000
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int64_t tv_sec;
|
int64_t tv_sec;
|
||||||
|
Loading…
Reference in New Issue
Block a user