From 23520f51076f0833f9a1716e87633fd92e9d0b69 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 13 Jan 2010 22:17:32 +0100 Subject: [PATCH] Use Win32 Sleep --- src/filter_limit.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/filter_limit.cpp b/src/filter_limit.cpp index 2b58fa6..784f68a 100644 --- a/src/filter_limit.cpp +++ b/src/filter_limit.cpp @@ -24,6 +24,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include #include +#ifdef WIN32 +#include +#endif namespace mp = metaproxy_1; namespace yf = mp::filter; @@ -191,7 +194,11 @@ void yf::Limit::Impl::process(mp::Package &package) if (reduce) { yaz_log(YLOG_LOG, "sleeping %d seconds", reduce); +#ifdef WIN32 + Sleep(reduce * 1000); +#else sleep(reduce); +#endif } } -- 1.7.10.4