summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorosen <kpedersen@live.co.uk>2020-02-27 23:14:40 +0000
committerGitHub <noreply@github.com>2020-02-27 15:14:40 -0800
commitf0834cc1aa293f779005d11c39cd2874be9510f2 (patch)
tree52bebfe3d59a3d2a67630b0f2bb62efcfa0516b7 /third_party
parent2105214971e722525c328a23a5d215789fafb24c (diff)
downloadbinaryen-f0834cc1aa293f779005d11c39cd2874be9510f2.tar.gz
binaryen-f0834cc1aa293f779005d11c39cd2874be9510f2.tar.bz2
binaryen-f0834cc1aa293f779005d11c39cd2874be9510f2.zip
On OpenBSD (6.6) libc++ fileno is defined as a MACRO which doesn't work with :: (#2669)
Diffstat (limited to 'third_party')
-rw-r--r--third_party/llvm-project/raw_ostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/llvm-project/raw_ostream.cpp b/third_party/llvm-project/raw_ostream.cpp
index 63e0fcbf1..5dd0f4ec1 100644
--- a/third_party/llvm-project/raw_ostream.cpp
+++ b/third_party/llvm-project/raw_ostream.cpp
@@ -523,7 +523,7 @@ static int getFD(StringRef Filename, std::error_code &EC,
sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access,
sys::fs::OpenFlags Flags) {
// XXX BINARYEN - we only ever use IO from LLVM to log to stdout
- return ::fileno(stdout);
+ return fileno(stdout);
}
raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC)