forked from OSchip/llvm-project
[Sanitizer] fix compilation on Mac OS 10.6 - don't use O_CLOEXEC
llvm-svn: 158000
This commit is contained in:
parent
8602c65719
commit
3768b58f82
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue