diff --git a/src/installer/kiwix-install.cpp b/src/installer/kiwix-install.cpp index 5b21326..bb0e5c7 100644 --- a/src/installer/kiwix-install.cpp +++ b/src/installer/kiwix-install.cpp @@ -25,6 +25,7 @@ #include #include #else +#include #include #endif @@ -186,7 +187,11 @@ int main(int argc, char **argv) { if (indexer != NULL) { indexer->start(contentPath, indexPath); while (indexer->isRunning()) { +#ifndef _WIN32 + Sleep(1000); +#else sleep(1); +#endif } delete indexer; } else {