diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase/0013-Check-glibc-version-for-renameat2-statx-on-non-boots.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase/0013-Check-glibc-version-for-renameat2-statx-on-non-boots.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase/0013-Check-glibc-version-for-renameat2-statx-on-non-boots.patch b/recipes-qt/qt5/qtbase/0013-Check-glibc-version-for-renameat2-statx-on-non-boots.patch new file mode 100644 index 00000000..27b354b2 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0013-Check-glibc-version-for-renameat2-statx-on-non-boots.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From ebd6d61f9031fec80c7dde35819cabec727179aa Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
3 | Date: Tue, 21 Aug 2018 00:29:06 +0200 | ||
4 | Subject: [PATCH] Check glibc version for renameat2/statx on non bootstrapped | ||
5 | build | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
13 | --- | ||
14 | src/corelib/io/qfilesystemengine_unix.cpp | 11 +++++++++++ | ||
15 | 1 file changed, 11 insertions(+) | ||
16 | |||
17 | diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp | ||
18 | index b2d81066db..b90e3dc15d 100644 | ||
19 | --- a/src/corelib/io/qfilesystemengine_unix.cpp | ||
20 | +++ b/src/corelib/io/qfilesystemengine_unix.cpp | ||
21 | @@ -93,6 +93,17 @@ extern "C" NSString *NSTemporaryDirectory(); | ||
22 | #ifndef FICLONE | ||
23 | # define FICLONE _IOW(0x94, 9, int) | ||
24 | #endif | ||
25 | + | ||
26 | +// renameat2/statx features for non bootstrapped build | ||
27 | +#ifndef QT_BOOTSTRAPPED | ||
28 | +#ifdef __GLIBC_PREREQ | ||
29 | +# define QT_FEATURE_renameat2 (__GLIBC_PREREQ(2, 28) ? 1 : -1) | ||
30 | +# define QT_FEATURE_statx (__GLIBC_PREREQ(2, 28) ? 1 : -1) | ||
31 | +#else | ||
32 | +# define QT_FEATURE_renameat2 -1 | ||
33 | +# define QT_FEATURE_statx -1 | ||
34 | +#endif | ||
35 | +#endif | ||
36 | #endif | ||
37 | |||
38 | #if defined(Q_OS_ANDROID) | ||