[compiler-rt] r177071 - [sanitizer] No dirent64 on Android.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Mar 14 06:24:03 PDT 2013


Author: eugenis
Date: Thu Mar 14 08:24:03 2013
New Revision: 177071

URL: http://llvm.org/viewvc/llvm-project?rev=177071&view=rev
Log:
[sanitizer] No dirent64 on Android.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc?rev=177071&r1=177070&r2=177071&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc Thu Mar 14 08:24:03 2013
@@ -42,12 +42,12 @@ namespace __sanitizer {
 #if defined(__linux__)
   unsigned struct_rlimit_sz = sizeof(struct rlimit);
   unsigned struct_dirent_sz = sizeof(struct dirent);
-  unsigned struct_dirent64_sz = sizeof(struct dirent64);
   unsigned struct_statfs_sz = sizeof(struct statfs);
   unsigned struct_epoll_event_sz = sizeof(struct epoll_event);
 #endif // __linux__
 
 #if defined(__linux__) && !defined(__ANDROID__)
+  unsigned struct_dirent64_sz = sizeof(struct dirent64);
   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
   unsigned struct_statfs64_sz = sizeof(struct statfs64);
 #endif // __linux__ && !__ANDROID__

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h?rev=177071&r1=177070&r2=177071&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h Thu Mar 14 08:24:03 2013
@@ -25,12 +25,12 @@ namespace __sanitizer {
 #if defined(__linux__)
   extern unsigned struct_rlimit_sz;
   extern unsigned struct_dirent_sz;
-  extern unsigned struct_dirent64_sz;
   extern unsigned struct_statfs_sz;
   extern unsigned struct_epoll_event_sz;
 #endif // __linux__
 
 #if defined(__linux__) && !defined(__ANDROID__)
+  extern unsigned struct_dirent64_sz;
   extern unsigned struct_rlimit64_sz;
   extern unsigned struct_statfs64_sz;
 #endif // __linux__ && !__ANDROID__





More information about the llvm-commits mailing list