summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-02-06 14:41:15 +0000
committerAlexander Potapenko <glider@google.com>2013-02-06 14:41:15 +0000
commitd895ae94f92be51f29e72912bf6e6825a7b3d62c (patch)
tree75f8d189f26dd50247ac05e7d0a5439e8941f948
parent21bedab7a1a3d675d3184300aabe020a96d0c200 (diff)
downloadbcm5719-llvm-d895ae94f92be51f29e72912bf6e6825a7b3d62c.tar.gz
bcm5719-llvm-d895ae94f92be51f29e72912bf6e6825a7b3d62c.zip
Use 64-bit inodes in file operations. ASan is now built with -mmacosx-version-min=10.5, thus the default inode
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
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_mac.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
index 3c0c8773011..2c5bd52b231 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
@@ -13,6 +13,12 @@
//===----------------------------------------------------------------------===//
#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"
OpenPOWER on IntegriCloud