summaryrefslogtreecommitdiff
path: root/unittests/Support/raw_pwrite_stream_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Support/raw_pwrite_stream_test.cpp')
-rw-r--r--unittests/Support/raw_pwrite_stream_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Support/raw_pwrite_stream_test.cpp b/unittests/Support/raw_pwrite_stream_test.cpp
index 249780a8c829..a528fd25b932 100644
--- a/unittests/Support/raw_pwrite_stream_test.cpp
+++ b/unittests/Support/raw_pwrite_stream_test.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/SmallString.h"
+#include "llvm/Config/llvm-config.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/raw_ostream.h"
@@ -83,7 +84,7 @@ TEST(raw_pwrite_ostreamTest, TestFD) {
#ifdef LLVM_ON_UNIX
TEST(raw_pwrite_ostreamTest, TestDevNull) {
int FD;
- sys::fs::openFileForWrite("/dev/null", FD, sys::fs::F_None);
+ sys::fs::openFileForWrite("/dev/null", FD, sys::fs::CD_OpenExisting);
raw_fd_ostream OS(FD, true);
OS << "abcd";
StringRef Test = "test";