]> git.pld-linux.org Git - packages/qt6.git/blob - x32.patch
- fix building on x32
[packages/qt6.git] / x32.patch
1 --- qt-everywhere-src-6.3.1/qtbase/src/corelib/thread/qthread.h~        2022-05-25 10:58:52.000000000 +0200
2 +++ qt-everywhere-src-6.3.1/qtbase/src/corelib/thread/qthread.h 2022-08-01 21:54:57.783355420 +0200
3 @@ -196,7 +196,7 @@
4  #elif defined(Q_PROCESSOR_X86_64) && defined(Q_OS_DARWIN64)
5      // 64bit macOS uses GS, see https://github.com/apple/darwin-xnu/blob/master/libsyscall/os/tsd.h
6      __asm__("movq %%gs:0, %0" : "=r" (tid) : : );
7 -#elif defined(Q_PROCESSOR_X86_64) && (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(Q_OS_FREEBSD)
8 +#elif (defined(Q_PROCESSOR_X86_64) && !defined(__ILP32__)) && (defined(Q_OS_LINUX) && defined(__GLIBC__)) || defined(Q_OS_FREEBSD)
9      // x86_64 Linux, BSD uses FS
10      __asm__("movq %%fs:%c1, %0" : "=r" (tid) : "i" (2 * sizeof(void*)) : );
11  #elif defined(Q_PROCESSOR_X86_64) && defined(Q_OS_WIN)
This page took 0.088755 seconds and 3 git commands to generate.