blob: 90ea8a88ba8272ed512a11e113984ba3bb5fc881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Index: work/src/qtsingleapplication/src/qtlocalpeer.cpp
===================================================================
--- work.orig/src/qtsingleapplication/src/qtlocalpeer.cpp
+++ work/src/qtsingleapplication/src/qtlocalpeer.cpp
@@ -100,7 +100,11 @@ QtLocalPeer::QtLocalPeer(QObject* parent
socketName += QLatin1Char('-') + QString::number(sessionId, 16);
}
#else
+#if __GNUC__ >= 4 && __GNUC_MINOR__ <=6
socketName += QLatin1Char('-') + QString::number(::getuid(), 16);
+#else
+ socketName += QLatin1Char('-') + QString::number(QtLP_Private::getuid(), 16);
+#endif
#endif
server = new QLocalServer(this);
|