mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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
19 lines
527 B
C++
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;
|