diff options
author | Colin Riley <colin@codeplay.com> | 2013-11-26 15:10:46 +0000 |
---|---|---|
committer | Colin Riley <colin@codeplay.com> | 2013-11-26 15:10:46 +0000 |
commit | 909bb7a3f42e7c57d9fad0798d4caac059ff5dd9 (patch) | |
tree | b4505966ef6d51f782ae12d6d5248070a447a3fa /lldb/source/Host/common/File.cpp | |
parent | 119f3073173cf6ae02d632d21e3926fcdac853fe (diff) | |
download | bcm5719-llvm-909bb7a3f42e7c57d9fad0798d4caac059ff5dd9.tar.gz bcm5719-llvm-909bb7a3f42e7c57d9fad0798d4caac059ff5dd9.zip |
Fix MSVC build
Added _WIN32 guards to new platform features. Using correct SetErrorStringWithFormat within Host when LLDB_DISABLE_POSIX is defined. Also fixed an if defined block.
llvm-svn: 195766
Diffstat (limited to 'lldb/source/Host/common/File.cpp')
-rw-r--r-- | lldb/source/Host/common/File.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index 91fc8bd6b7b..bbd11858aab 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -237,8 +237,10 @@ File::Open (const char *path, uint32_t options, uint32_t permissions) { oflag |= O_RDONLY; +#ifndef _WIN32 if (options & eOpenoptionDontFollowSymlinks) oflag |= O_NOFOLLOW; +#endif } #ifndef _WIN32 |