[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [vidalia/alpha] Fix build error in certain Debian flavors
commit 13a75c5dd6d150b821c3f0b5495af63f958260e3
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits