[ASan] Bump min supported Mac OS X version to 10.6
authorAlexey Samsonov <samsonov@google.com>
Tue, 16 Jul 2013 11:54:40 +0000 (11:54 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 16 Jul 2013 11:54:40 +0000 (11:54 +0000)
llvm-svn: 186404

compiler-rt/CMakeLists.txt
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h

index b9c2323..21fdf29 100644 (file)
@@ -155,7 +155,7 @@ if(APPLE)
   if(COMPILER_RT_USES_LIBCXX)
     set(SANITIZER_MIN_OSX_VERSION 10.7)
   else()
-    set(SANITIZER_MIN_OSX_VERSION 10.5)
+    set(SANITIZER_MIN_OSX_VERSION 10.6)
   endif()
   list(APPEND SANITIZER_COMMON_CFLAGS
     -mmacosx-version-min=${SANITIZER_MIN_OSX_VERSION})
index 4ea85ac..b60b99b 100644 (file)
@@ -797,7 +797,9 @@ CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
 
 COMPILER_CHECK(sizeof(__sanitizer_dirent) <= sizeof(dirent));
 CHECK_SIZE_AND_OFFSET(dirent, d_ino);
-#ifndef SANITIZER_MAC
+#if SANITIZER_MAC
+CHECK_SIZE_AND_OFFSET(dirent, d_seekoff);
+#else
 CHECK_SIZE_AND_OFFSET(dirent, d_off);
 #endif
 CHECK_SIZE_AND_OFFSET(dirent, d_reclen);
index 416759b..e47f82e 100644 (file)
@@ -96,7 +96,8 @@ namespace __sanitizer {
 
 #if SANITIZER_MAC
   struct __sanitizer_dirent {
-    unsigned d_ino;
+    unsigned long long d_ino;
+    unsigned long long d_seekoff;
     unsigned short d_reclen;
     // more fields that we don't care about
   };