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