mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
- Fix building with clang on HEAD
Approved by: maintainer
This commit is contained in:
parent
918e6d8078
commit
81ff9498e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329315
@ -0,0 +1,19 @@
|
||||
--- ./src/qtlocalpeer.cpp.orig 2011-06-03 10:11:13.000000000 +0000
|
||||
+++ ./src/qtlocalpeer.cpp 2013-09-30 04:50:58.418156167 +0000
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "qtlocalpeer.h"
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTime>
|
||||
+#include <unistd.h>
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
#include <QtCore/QLibrary>
|
||||
@@ -93,7 +94,7 @@
|
||||
socketName += QLatin1Char('-') + QString::number(sessionId, 16);
|
||||
}
|
||||
#else
|
||||
- socketName += QLatin1Char('-') + QString::number(::getuid(), 16);
|
||||
+ socketName += QLatin1Char('-') + QString::number(getuid(), 16);
|
||||
#endif
|
||||
|
||||
server = new QLocalServer(this);
|
@ -1,10 +0,0 @@
|
||||
--- src/qtlocalpeer.cpp.orig 2011-06-03 10:11:13.000000000 +0000
|
||||
+++ src/qtlocalpeer.cpp
|
||||
@@ -49,6 +49,7 @@ typedef BOOL(WINAPI*PProcessIdToSessionI
|
||||
static PProcessIdToSessionId pProcessIdToSessionId = 0;
|
||||
#endif
|
||||
#if defined(Q_OS_UNIX)
|
||||
+#include <unistd.h>
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user