Index: llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp =================================================================== --- llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp +++ llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include static volatile char *SinkPtr; @@ -21,7 +22,7 @@ char *p = new char[kSize]; memset(p, 0, kSize); SinkPtr = p; - sleep(1); + std::this_thread::sleep_for(std::chrono::seconds(1)); } } } Index: llvm/trunk/lib/Fuzzer/test/StrstrTest.cpp =================================================================== --- llvm/trunk/lib/Fuzzer/test/StrstrTest.cpp +++ llvm/trunk/lib/Fuzzer/test/StrstrTest.cpp @@ -8,6 +8,12 @@ #include #include +// Windows does not have strcasestr and memmem, so we are not testing them. +#ifdef _WIN32 +#define strcasestr strstr +#define memmem(a, b, c, d) true +#endif + extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size < 4) return 0; std::string s(reinterpret_cast(Data), Size);