freebsd-ports/textproc/goldendict/files/patch-processwrapper.cc
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

9 lines
234 B
C++

--- ./processwrapper.cc.orig 2013-09-12 13:03:02.450955685 +0400
+++ ./processwrapper.cc 2013-09-12 13:04:34.115949039 +0400
@@ -1,5 +1,6 @@
#include "processwrapper.hh"
+#include <unistd.h>
#include <QtCore>
#ifdef Q_OS_WIN32