diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-09-19 00:05:54 -0500 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-10-12 15:39:32 +0000 |
commit | b7887f9b4faad2227691a2af589e9d7680d6ae08 (patch) | |
tree | ff2c8897d01498288bd1e3544c8c8563e90ba26c /src/corelib/global/minimum-linux_p.h | |
parent | 3eebadc1734463afa469dcd08eab8c5d2557dec6 (diff) |
Linux: Remove our use of syscall() for statx(2) and renameat2(2)
Those system calls are present in glibc 2.28. Instead of using
syscall(3) to place the system calls directly, let's use only the glibc
functions. That also means we no longer accept ENOSYS from either
function, if they were detected in glibc.
Change-Id: I44e7d800c68141bdaae0fffd1555b4b8fe63786b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/corelib/global/minimum-linux_p.h')
-rw-r--r-- | src/corelib/global/minimum-linux_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/global/minimum-linux_p.h b/src/corelib/global/minimum-linux_p.h index bad2488b4d..9c074e13ba 100644 --- a/src/corelib/global/minimum-linux_p.h +++ b/src/corelib/global/minimum-linux_p.h @@ -75,9 +75,14 @@ QT_BEGIN_NAMESPACE * - accept4 2.6.28 * - renameat2 3.16 QT_CONFIG(renameat2) * - getrandom 3.17 QT_CONFIG(getentropy) + * - statx 4.11 QT_CONFIG(statx) */ -#if QT_CONFIG(getentropy) +#if QT_CONFIG(statx) +# define MINLINUX_MAJOR 4 +# define MINLINUX_MINOR 11 +# define MINLINUX_PATCH 0 +#elif QT_CONFIG(getentropy) # define MINLINUX_MAJOR 3 # define MINLINUX_MINOR 17 # define MINLINUX_PATCH 0 |