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, 0 insertions, 38 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 deleted file mode 100644 index 7a0f334a..00000000 --- a/recipes-qt/qt5/qtbase/0013-Check-glibc-version-for-renameat2-statx-on-non-boots.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | From 3aa91c5947c880e9e0380c9b481bfafd2eeb566c 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 5a5a3a82c6..e5469ff5d7 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) | ||
