From b58cf53353cf24fb551311230df2ddcc63629c7f Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 5 Jun 2012 08:39:08 -0500 Subject: [PATCH] some windows fixes --- examples/wsperf/request.cpp | 2 +- src/common.hpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/wsperf/request.cpp b/examples/wsperf/request.cpp index d24bbe1536..55e330488a 100644 --- a/examples/wsperf/request.cpp +++ b/examples/wsperf/request.cpp @@ -126,7 +126,7 @@ void request::process(unsigned int id) { } - sleep(1); + boost::this_thread::sleep(boost::posix_time::milliseconds(1000)); } e.end_perpetual(); t.join(); diff --git a/src/common.hpp b/src/common.hpp index 1115465c77..6dfd51e9a1 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -41,7 +41,9 @@ #endif #ifdef _MSC_VER - #define _WEBSOCKETPP_CPP11_FRIEND_ + #ifndef _WEBSOCKETPP_CPP11_FRIEND_ + #define _WEBSOCKETPP_CPP11_FRIEND_ + #endif #endif #include