From 527b512cf754bc7846852f3a4a61d8b364c5abc3 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 6 Apr 2012 17:44:26 -0400 Subject: [PATCH] Bugfix: Windows lacks sleep(), so need to use Sleep() from util.h --- src/qt/bitcoin.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 311fab3..1133f12 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -8,6 +8,7 @@ #include "headers.h" #include "init.h" +#include "util.h" #include #include @@ -45,7 +46,7 @@ int ThreadSafeMessageBox(const std::string& message, const std::string& caption, if (modal) while (!guiref) - sleep(1); + Sleep(1000); // Message from network thread if(guiref) -- 1.7.1