aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Support/raw_ostream.cpp5
-rw-r--r--test/Object/check_binary_output.ll3
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index 3e5ce04..92fa8b5 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/lib/Support/raw_ostream.cpp
@@ -27,6 +27,11 @@
#include <cerrno>
#include <sys/stat.h>
+// <fcntl.h> may provide O_BINARY.
+#if defined(HAVE_FCNTL_H)
+# include <fcntl.h>
+#endif
+
#if defined(HAVE_UNISTD_H)
# include <unistd.h>
#endif
diff --git a/test/Object/check_binary_output.ll b/test/Object/check_binary_output.ll
index 02b52a3..567f18e 100644
--- a/test/Object/check_binary_output.ll
+++ b/test/Object/check_binary_output.ll
@@ -1,7 +1,4 @@
; This is not an assembly file, this is just to run the test.
; The test verifies that llvm-ar produces a binary output.
-; FIXME: They malform LF into CRLF. Investigating.
-; XFAIL: mingw32,win32
-
;RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/Inputs/very_long_bytecode_file_name.bc -