ports/graphics/qgis/files/patch-src_server_qgsfcgiserverresponse.cpp
Rainer Hurling dd79365119 graphics/qgis: Use gettid patch from qgis project
A few hours after the commit of v3.42.0 of the QGIS port, a suitable
patch [1] was published in the main branch of the QGIS project, which
represents a more general solution for the replacement of the
linux-centric gettid().

[1] 00c4fa6911
2025-03-24 21:30:35 +01:00

19 lines
527 B
C++

--- src/server/qgsfcgiserverresponse.cpp.orig 2025-03-21 12:35:59 UTC
+++ src/server/qgsfcgiserverresponse.cpp
@@ -23,6 +23,7 @@
#include "qgsmessagelog.h"
#include <fcgi_stdio.h>
#include <QDebug>
+#include <QThread>
#include "qgslogger.h"
@@ -114,7 +115,7 @@ void QgsSocketMonitoringThread::run()
}
#if defined( Q_OS_UNIX ) && !defined( Q_OS_ANDROID )
- const pid_t threadId = gettid();
+ quint64 threadId = reinterpret_cast<quint64>( QThread::currentThreadId() );
mShouldStop.store( false );
char c;