QFileSystemEngine: don't try to use statx(2) if SYS_statx isn't defined
If glibc's <unistd.h> does not define SYS_statx but <linux/stat.h> did define struct statx and related constants, we failed to compile. Task-number: QTBUG-68205 Change-Id: I04a43ee94975482f9e32fffd151e66bbe6988554 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
a7863a5854
commit
6eef81ee1c
@ -114,6 +114,8 @@ static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newp
|
|||||||
# if !QT_CONFIG(statx) && defined(SYS_statx)
|
# if !QT_CONFIG(statx) && defined(SYS_statx)
|
||||||
static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
|
static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
|
||||||
{ return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
|
{ return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
|
||||||
|
# elif !QT_CONFIG(statx) && !defined(SYS_statx)
|
||||||
|
# undef STATX_BASIC_STATS
|
||||||
# endif
|
# endif
|
||||||
# endif // !Q_OS_ANDROID
|
# endif // !Q_OS_ANDROID
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user