[compiler-rt] r187983 - [sanitizer] Limit scandir interceptor to Linux.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Aug 8 07:04:36 PDT 2013
Author: eugenis
Date: Thu Aug 8 09:04:36 2013
New Revision: 187983
URL: http://llvm.org/viewvc/llvm-project?rev=187983&view=rev
Log:
[sanitizer] Limit scandir interceptor to Linux.
Implementation uses __thread not available on certain platforms.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h?rev=187983&r1=187982&r2=187983&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h Thu Aug 8 09:04:36 2013
@@ -113,7 +113,7 @@
# define SANITIZER_INTERCEPT_SCHED_GETAFFINITY SI_LINUX_NOT_ANDROID
# define SANITIZER_INTERCEPT_STRERROR SI_NOT_WINDOWS
# define SANITIZER_INTERCEPT_STRERROR_R SI_NOT_WINDOWS
-# define SANITIZER_INTERCEPT_SCANDIR SI_NOT_WINDOWS
+# define SANITIZER_INTERCEPT_SCANDIR SI_LINUX_NOT_ANDROID
# define SANITIZER_INTERCEPT_SCANDIR64 SI_LINUX_NOT_ANDROID
#endif // #ifndef SANITIZER_PLATFORM_INTERCEPTORS_H
More information about the llvm-commits
mailing list