summarylogtreecommitdiffstats
path: root/qt-no-statx.patch
diff options
context:
space:
mode:
authorMichel Zou2018-05-28 22:46:22 +0200
committerMichel Zou2018-05-28 22:46:22 +0200
commitab180bfb3e0eae72740c55a817360c5d5bbcc49f (patch)
tree610303a9d0ad98dcd425090864a723a07d2a1266 /qt-no-statx.patch
parent2100772ef037514daac90283916000e108d7876c (diff)
downloadaur-ab180bfb3e0eae72740c55a817360c5d5bbcc49f.tar.gz
5.11.0
Diffstat (limited to 'qt-no-statx.patch')
-rw-r--r--qt-no-statx.patch18
1 files changed, 11 insertions, 7 deletions
diff --git a/qt-no-statx.patch b/qt-no-statx.patch
index bbcb11856490..917f1802e7bd 100644
--- a/qt-no-statx.patch
+++ b/qt-no-statx.patch
@@ -11,14 +11,18 @@ container
diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp
index 77d154c6b4..6036bae4f1 100644
---- a/src/corelib/io/qfilesystemengine_unix.cpp
-+++ b/src/corelib/io/qfilesystemengine_unix.cpp
-@@ -95,7 +95,7 @@ static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newp
+--- a/src/corelib/io/qfilesystemengine_unix.cpp.orig 2018-05-28 22:38:37.194020915 +0200
++++ b/src/corelib/io/qfilesystemengine_unix.cpp 2018-05-28 22:39:00.184051210 +0200
+@@ -111,10 +111,10 @@
{ return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
- # endif
+ # endif
--# if !QT_CONFIG(statx) && defined(SYS_statx) && QT_HAS_INCLUDE(<linux/stat.h>)
-+# if 0
- # include <linux/stat.h>
+-# if !QT_CONFIG(statx) && defined(SYS_statx)
++# if 0
static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
{ return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
+-# elif !QT_CONFIG(statx) && !defined(SYS_statx)
++# elif 1
+ # undef STATX_BASIC_STATS
+ # endif
+ # endif // !Q_OS_ANDROID