vidalia: fix build with gcc-4.7

This commit is contained in:
Evgeny Egorochkin 2014-02-02 07:43:30 +02:00
parent 37b1c1481b
commit 72a8329ee2
2 changed files with 14 additions and 0 deletions

View file

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
buildInputs = [ cmake qt4 doxygen ];
patches = [ ./gcc-4.7.patch ];
meta = with stdenv.lib; {
homepage = https://www.torproject.org/projects/vidalia.html.en;
description = "a cross-platform graphical controller for the Tor software, built using the Qt framework";

View file

@ -0,0 +1,12 @@
diff -ru vidalia-0.3.1_orig/src/vidalia/plugin/PluginEngine.cpp vidalia-0.3.1/src/vidalia/plugin/PluginEngine.cpp
--- vidalia-0.3.1_orig/src/vidalia/plugin/PluginEngine.cpp 2012-08-08 18:02:01.901732270 +0200
+++ vidalia-0.3.1/src/vidalia/plugin/PluginEngine.cpp 2012-08-08 18:03:26.241677875 +0200
@@ -20,6 +20,8 @@
#include "Vidalia.h"
+#include <unistd.h>
+
PluginEngine::PluginEngine(QObject *parent)
: QScriptEngine(parent)
{