[PATCH] D151647: Cleanup include: Add conditionally missing include

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 29 03:00:49 PDT 2023


serge-sans-paille created this revision.
serge-sans-paille added a reviewer: MaskRay.
Herald added a subscriber: hiraditya.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fix #62804


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151647

Files:
  llvm/lib/Support/Errno.cpp


Index: llvm/lib/Support/Errno.cpp
===================================================================
--- llvm/lib/Support/Errno.cpp
+++ llvm/lib/Support/Errno.cpp
@@ -18,6 +18,10 @@
 #include <errno.h>
 #endif
 
+#if !HAVE_STRERROR_R && !HAVE_DECL_STRERROR_S && !HAVE_STRERROR
+#include "llvm/Support/raw_ostream.h"
+#endif
+
 //===----------------------------------------------------------------------===//
 //=== WARNING: Implementation here must contain only TRULY operating system
 //===          independent code.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151647.526421.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230529/1aec9488/attachment.bin>


More information about the llvm-commits mailing list