changeset 2896:b790b3ffda99 draft

Bugfix: Windows lacks sleep(), so need to use Sleep() from util.h
author Luke Dashjr <luke-jr+git@utopios.org>
date Fri, 06 Apr 2012 17:44:26 -0400
parents eb231c32e0c2
children d23a41dbeca9 1de8a73c3b99
files src/qt/bitcoin.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -8,6 +8,7 @@
 
 #include "headers.h"
 #include "init.h"
+#include "util.h"
 
 #include <QApplication>
 #include <QMessageBox>
@@ -45,7 +46,7 @@
 
     if (modal)
         while (!guiref)
-            sleep(1);
+            Sleep(1000);
 
     // Message from network thread
     if(guiref)