[llvm-commits] [compiler-rt] r158000 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
Alexey Samsonov
samsonov at google.com
Tue Jun 5 07:07:11 PDT 2012
Author: samsonov
Date: Tue Jun 5 09:07:11 2012
New Revision: 158000
URL: http://llvm.org/viewvc/llvm-project?rev=158000&view=rev
Log:
[Sanitizer] fix compilation on Mac OS 10.6 - don't use O_CLOEXEC
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=158000&r1=157999&r2=158000&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Tue Jun 5 09:07:11 2012
@@ -40,7 +40,7 @@
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) {
More information about the llvm-commits
mailing list