summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc')
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc b/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc
index 74749d496..d8be2afb1 100644
--- a/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc
+++ b/lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc
@@ -16,7 +16,8 @@ clang++ -fno-exceptions -g -fPIC -I. \
LD_PRELOAD=`pwd`/teststoptheworld.so /your/app
*/
-#ifdef __linux__
+#include "sanitizer_common/sanitizer_platform.h"
+#if SANITIZER_LINUX
#include <dlfcn.h>
#include <stddef.h>
@@ -49,4 +50,4 @@ __attribute__((constructor)) void StopTheWorldTestLibConstructor(void) {
}
} // namespace
-#endif // __linux__
+#endif // SANITIZER_LINUX