[Sanitizer] fix compilation on Mac OS 10.6 - don't use O_CLOEXEC

llvm-svn: 158000
This commit is contained in:
Alexey Samsonov 2012-06-05 14:07:11 +00:00
parent 8602c65719
commit 3768b58f82
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ int internal_close(fd_t fd) {
fd_t internal_open(const char *filename, bool write) {
return open(filename,
write ? O_WRONLY | O_CREAT | O_CLOEXEC : O_RDONLY, 0660);
write ? O_WRONLY | O_CREAT : O_RDONLY, 0660);
}
uptr internal_read(fd_t fd, void *buf, uptr count) {