diff options
author | kmoore <kmoore@FreeBSD.org> | 2013-10-04 22:30:04 +0800 |
---|---|---|
committer | kmoore <kmoore@FreeBSD.org> | 2013-10-04 22:30:04 +0800 |
commit | a1350c3397094fc46422943232c30702cba73dba (patch) | |
tree | c377145d5d8a8cc236e4ce54d8fe0f65d4fb5d03 | |
parent | 093816b921bc75f70ef83b06e3838359afe09556 (diff) | |
download | freebsd-ports-gnome-a1350c3397094fc46422943232c30702cba73dba.tar.gz freebsd-ports-gnome-a1350c3397094fc46422943232c30702cba73dba.tar.zst freebsd-ports-gnome-a1350c3397094fc46422943232c30702cba73dba.zip |
- Fix building with clang on HEAD
Approved by: maintainer
-rw-r--r-- | devel/qt4-qtsolutions-singleapplication/files/patch-src__qtlocalpeer.cpp | 19 | ||||
-rw-r--r-- | devel/qt4-qtsolutions-singleapplication/files/patch-src_qtlocalpeer.cpp | 10 |
2 files changed, 19 insertions, 10 deletions
diff --git a/devel/qt4-qtsolutions-singleapplication/files/patch-src__qtlocalpeer.cpp b/devel/qt4-qtsolutions-singleapplication/files/patch-src__qtlocalpeer.cpp new file mode 100644 index 000000000000..6d4f306d2313 --- /dev/null +++ b/devel/qt4-qtsolutions-singleapplication/files/patch-src__qtlocalpeer.cpp @@ -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); diff --git a/devel/qt4-qtsolutions-singleapplication/files/patch-src_qtlocalpeer.cpp b/devel/qt4-qtsolutions-singleapplication/files/patch-src_qtlocalpeer.cpp deleted file mode 100644 index fa401718e146..000000000000 --- a/devel/qt4-qtsolutions-singleapplication/files/patch-src_qtlocalpeer.cpp +++ /dev/null @@ -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 - |