[PATCH] D149513: Use <cerrno> explicitly
NAKAMURA Takumi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 29 00:31:27 PDT 2023
chapuni created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
chapuni requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
D146395 <https://reviews.llvm.org/D146395> has hidden `errno` in LLVM_ENABLE_MODULES.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149513
Files:
llvm/lib/Object/ArchiveWriter.cpp
llvm/lib/Support/JSON.cpp
llvm/lib/Support/Path.cpp
Index: llvm/lib/Support/Path.cpp
===================================================================
--- llvm/lib/Support/Path.cpp
+++ llvm/lib/Support/Path.cpp
@@ -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>
Index: llvm/lib/Support/JSON.cpp
===================================================================
--- llvm/lib/Support/JSON.cpp
+++ llvm/lib/Support/JSON.cpp
@@ -14,6 +14,7 @@
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/NativeFormatting.h"
#include <cctype>
+#include <cerrno>
#include <optional>
namespace llvm {
Index: llvm/lib/Object/ArchiveWriter.cpp
===================================================================
--- llvm/lib/Object/ArchiveWriter.cpp
+++ llvm/lib/Object/ArchiveWriter.cpp
@@ -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__)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149513.518136.patch
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230429/08f16d8a/attachment.bin>
More information about the llvm-commits
mailing list