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