Use 64-bit inodes in file operations. ASan is now built with -mmacosx-version-min...
authorAlexander Potapenko <glider@google.com>
Wed, 6 Feb 2013 14:41:15 +0000 (14:41 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 6 Feb 2013 14:41:15 +0000 (14:41 +0000)
size is 32 bits. However the supported client code is going to target 10.6 and higher, where 64-bit inodes will be used.

llvm-svn: 174507

compiler-rt/lib/sanitizer_common/sanitizer_mac.cc

index 3c0c877..2c5bd52 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #ifdef __APPLE__
+// Use 64-bit inodes in file operations. ASan does not support OS X 10.5, so
+// the clients will most certainly use 64-bit ones as well.
+#ifndef _DARWIN_USE_64_BIT_INODE
+#define _DARWIN_USE_64_BIT_INODE 1
+#endif
+#include <stdio.h>
 
 #include "sanitizer_common.h"
 #include "sanitizer_internal_defs.h"