1
0
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:
Kris Moore 2013-10-04 14:30:04 +00:00
parent 918e6d8078
commit 81ff9498e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329315
2 changed files with 19 additions and 10 deletions

View File

@ -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);

View File

@ -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