[tor-commits] [vidalia/alpha] Fix build error in certain Debian flavors

chiiph at torproject.org chiiph at torproject.org
Tue Jun 12 23:29:43 UTC 2012


commit 13a75c5dd6d150b821c3f0b5495af63f958260e3
Author: Tomás Touceda <chiiph at torproject.org>
Date:   Tue Jun 12 20:28:31 2012 -0300

    Fix build error in certain Debian flavors
---
 src/vidalia/plugin/PluginEngine.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/vidalia/plugin/PluginEngine.cpp b/src/vidalia/plugin/PluginEngine.cpp
index 0c9e75a..c20424c 100644
--- a/src/vidalia/plugin/PluginEngine.cpp
+++ b/src/vidalia/plugin/PluginEngine.cpp
@@ -20,6 +20,8 @@
 
 #include "Vidalia.h"
 
+#include <unistd.h>
+
 PluginEngine::PluginEngine(QObject *parent)
   : QScriptEngine(parent)
 {
@@ -228,7 +230,7 @@ PluginEngine::sleep(QScriptContext *context, QScriptEngine *engine)
 #if defined(Q_WS_WIN)
   Sleep(s*1000);
 #else
-  !::sleep(s);
+  (void)::sleep(s);
 #endif
 
   return engine->nullValue();



More information about the tor-commits mailing list