From 69684009e3fb582dfb737eac6c086c8972001063 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Wed, 2 Apr 2014 17:03:53 +0200 Subject: [PATCH] + Add necessary header includes --- src/common/otherTools.cpp | 2 +- src/common/otherTools.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/otherTools.cpp b/src/common/otherTools.cpp index 355b672b0..4603254f6 100644 --- a/src/common/otherTools.cpp +++ b/src/common/otherTools.cpp @@ -23,6 +23,6 @@ void kiwix::sleep(unsigned int milliseconds) { #ifdef _WIN32 Sleep(milliseconds); #else - sleep(1000 * milliseconds); + usleep(1000 * milliseconds); #endif } diff --git a/src/common/otherTools.h b/src/common/otherTools.h index d2fe5d795..4c7ae3b34 100644 --- a/src/common/otherTools.h +++ b/src/common/otherTools.h @@ -20,10 +20,14 @@ #ifndef KIWIX_OTHERTOOLS_H #define KIWIX_OTHERTOOLS_H +#ifdef _WIN32 +#include +#else +#include +#endif + namespace kiwix { - void sleep(unsigned int milliseconds); - } #endif