diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp @@ -78,6 +78,8 @@ } } +# if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD || \ + SANITIZER_SOLARIS const char *const parse_unix_input = R"( 7fb9862f1000-7fb9862f3000 rw-p 00000000 00:00 0 Size: 8 kB @@ -129,6 +131,7 @@ } UnmapOrDie(mem, 2 * page); } +# endif } // namespace __sanitizer #endif // !defined(_WIN32)