commit 13a75c5dd6d150b821c3f0b5495af63f958260e3 Author: Tomás Touceda chiiph@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();
tor-commits@lists.torproject.org