freebsd-ports/textproc/goldendict/files/patch-qtsingleapplication-src-qtlocalpeer.cpp
Boris Samorodov d732440950 1. Fix build with clang and libc++ (3 cases, add "#include <unistd.h>" to
apropriate files):
-----
bgl_babylon.cc:97:19: error: use of undeclared identifier 'dup'
  file = gzdopen( DUP( fileno( f ) ), "r" );
                  ^
bgl_babylon.cc:36:13: note: expanded from macro 'DUP'
#define DUP dup
            ^
-----
processwrapper.cc:99:12: error: use of undeclared identifier 'getpid'
    return getpid();
           ^
-----
qtsingleapplication/src/qtlocalpeer.cpp:96:56: error: no member named 'getuid' in the global namespace
    socketName += QLatin1Char('-') + QString::number(::getuid(), 16);
                                                     ~~^
-----

2. Use new syntax for LIB_DEPENDS.
2013-09-12 13:33:00 +00:00

10 lines
291 B
C++

--- qtsingleapplication/src/qtlocalpeer.cpp.orig 2013-09-12 13:40:34.269802688 +0400
+++ qtsingleapplication/src/qtlocalpeer.cpp 2013-09-12 13:41:07.606795170 +0400
@@ -50,6 +50,7 @@
#endif
#if defined(Q_OS_UNIX)
#include <time.h>
+#include <unistd.h>
#endif
namespace QtLP_Private {