Skip to content

Commit

Permalink
llvm/lib: Use <cerrno> explicitly since D146395 has hidden errno
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D149513
  • Loading branch information
chapuni committed May 11, 2023
1 parent 33b69b9 commit e13d1b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Object/ArchiveWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "llvm/Support/SmallVectorMemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"

#include <cerrno>
#include <map>

#if !defined(_MSC_VER) && !defined(__MINGW32__)
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/JSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/NativeFormatting.h"
#include <cctype>
#include <cerrno>
#include <optional>

namespace llvm {
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Support/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
#include <cctype>
#include <cerrno>

#if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h>
Expand Down

0 comments on commit e13d1b5

Please sign in to comment.