diff options
author | Michel Zou | 2018-05-02 20:25:59 +0200 |
---|---|---|
committer | Michel Zou | 2018-05-02 20:25:59 +0200 |
commit | 4d08d8d43697ea96da9cb31f8d1af26ecae0704d (patch) | |
tree | cc2bddc956408a1808eb3bd8941d27e96c67246b /qt-no-statx.patch | |
download | aur-4d08d8d43697ea96da9cb31f8d1af26ecae0704d.tar.gz |
import
Diffstat (limited to 'qt-no-statx.patch')
-rw-r--r-- | qt-no-statx.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qt-no-statx.patch b/qt-no-statx.patch new file mode 100644 index 000000000000..bbcb11856490 --- /dev/null +++ b/qt-no-statx.patch @@ -0,0 +1,24 @@ +From b47e6c6fc2f5eaf489458fcf5930015f6baf3281 Mon Sep 17 00:00:00 2001 +From: Martchus <martchus@gmx.net> +Date: Sat, 9 Dec 2017 00:36:56 +0100 +Subject: [PATCH] Don't use the statx syscall + +Otherwise Qt can not be built in a systemd +container +--- + src/corelib/io/qfilesystemengine_unix.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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 + { return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); } + # endif + +-# if !QT_CONFIG(statx) && defined(SYS_statx) && QT_HAS_INCLUDE(<linux/stat.h>) ++# if 0 + # include <linux/stat.h> + static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf) + { return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); } |