dev-qt: Drop Qt 5.9.6
[gentoo.git] / dev-qt / qtcore / files / qtcore-5.11.2-export-qt_open64.patch
1 From 4fc4f7b0ce0e6ee186a7d7fe9b5dd20e94efe432 Mon Sep 17 00:00:00 2001
2 From: Thiago Macieira <thiago.macieira@intel.com>
3 Date: Fri, 21 Sep 2018 09:04:24 -0700
4 Subject: [PATCH] Export qt_open64 from QtCore
5
6 Other libs use qcore_unix_p.h.
7
8 qopenglprogrambinarycache.cpp:function QOpenGLProgramBinaryCache::load(QByteArray const&, unsigned int): error: undefined reference to 'qt_open64(char const*, int, unsigned int)'
9
10 Change-Id: I44e7d800c68141bdaae0fffd155675d15eded2e4
11 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
12 Reviewed-by: Eric Lemanissier <eric.lemanissier@gmail.com>
13 ---
14  src/corelib/kernel/qcore_unix_p.h | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/src/corelib/kernel/qcore_unix_p.h b/src/corelib/kernel/qcore_unix_p.h
18 index cb98bef3476..5a2a29a3273 100644
19 --- a/src/corelib/kernel/qcore_unix_p.h
20 +++ b/src/corelib/kernel/qcore_unix_p.h
21 @@ -178,7 +178,7 @@ inline void qt_ignore_sigpipe()
22  
23  #if defined(Q_PROCESSOR_X86_32) && defined(__GLIBC__)
24  #  if !__GLIBC_PREREQ(2, 22)
25 -int qt_open64(const char *pathname, int flags, mode_t);
26 +Q_CORE_EXPORT int qt_open64(const char *pathname, int flags, mode_t);
27  #    undef QT_OPEN
28  #    define QT_OPEN qt_open64
29  #  endif
30 -- 
31 2.16.3