[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7398 - gnunet-qt/src/plugins/general
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7398 - gnunet-qt/src/plugins/general |
Date: |
Wed, 9 Jul 2008 08:54:25 -0600 (MDT) |
Author: durner
Date: 2008-07-09 08:54:25 -0600 (Wed, 09 Jul 2008)
New Revision: 7398
Modified:
gnunet-qt/src/plugins/general/startStopThread.cc
Log:
fix MinGW
Modified: gnunet-qt/src/plugins/general/startStopThread.cc
===================================================================
--- gnunet-qt/src/plugins/general/startStopThread.cc 2008-07-08 20:51:06 UTC
(rev 7397)
+++ gnunet-qt/src/plugins/general/startStopThread.cc 2008-07-09 14:54:25 UTC
(rev 7398)
@@ -30,6 +30,10 @@
#include "startStopThread.h"
+#if defined(Q_OS_WIN)
+ extern "C" char *_win_strerror(int errnum);
+#endif
+
GStartStopThread::GStartStopThread(struct GNUNET_GC_Configuration *config,
struct GNUNET_GE_Context *errorContext, QObject *parent) : QThread(parent)
{
@@ -51,18 +55,24 @@
void GStartStopThread::run()
{
bool ret;
-
+
if (doStart)
ret = GNUNET_daemon_start(errorContext, config, NULL, GNUNET_YES) !=
GNUNET_SYSERR;
else
{
struct GNUNET_ClientServerConnection * sock;
-
+
sock = GNUNET_client_connection_create(errorContext, config);
ret = GNUNET_client_connection_request_daemon_shutdown(sock) !=
GNUNET_SYSERR;
}
-
- emit finished(ret, GNUNET_GE_strerror(errno));
+
+ emit finished(ret,
+#if defined(Q_OS_WIN)
+ _win_strerror(errno)
+#else
+ strerror(errno)
+#endif
+ );
}
/* end of startStopThread.cc */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7398 - gnunet-qt/src/plugins/general,
gnunet <=