]> granicus.if.org Git - icinga2/commitdiff
Fixed Utility::Sleep on Windows.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Sep 2012 08:05:54 +0000 (10:05 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Sep 2012 08:05:54 +0000 (10:05 +0200)
lib/base/utility.cpp

index 21aff8b36bd6d7b749b8ccdb85a3845a73b1d255..1eae0f3a3f722b29ac7f0ef5ec47b2f52d874b51 100644 (file)
@@ -330,7 +330,7 @@ void Utility::Sleep(double timeout)
 #ifndef _WIN32
        usleep(timeout * 1000 * 1000);
 #else /* _WIN32 */
-       Sleep(timeout * 1000);
+       ::Sleep(timeout * 1000);
 #endif /* _WIN32 */
 }