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
This commit is contained in:
Alexander Potapenko 2013-02-06 14:41:15 +00:00
parent 21bedab7a1
commit d895ae94f9
1 changed files with 6 additions and 0 deletions

View File

@ -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"