[libcxx-commits] [PATCH] D138528: [libc++][NFC] Remove unused include in __threading_support

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 25 09:53:48 PST 2022


ldionne updated this revision to Diff 477996.
ldionne added a comment.

Rebase and remove temporary CI hack


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138528/new/

https://reviews.llvm.org/D138528

Files:
  libcxx/include/__threading_support
  libcxx/src/support/win32/thread_win32.cpp


Index: libcxx/src/support/win32/thread_win32.cpp
===================================================================
--- libcxx/src/support/win32/thread_win32.cpp
+++ libcxx/src/support/win32/thread_win32.cpp
@@ -7,6 +7,8 @@
 //===----------------------------------------------------------------------===//
 
 #include <__threading_support>
+#include <chrono>
+
 #define NOMINMAX
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
Index: libcxx/include/__threading_support
===================================================================
--- libcxx/include/__threading_support
+++ libcxx/include/__threading_support
@@ -16,7 +16,7 @@
 #include <__compare/ordering.h>
 #include <__config>
 #include <__fwd/hash.h>
-#include <__thread/poll_with_backoff.h>
+#include <ctime>
 #include <errno.h>
 #include <iosfwd>
 #include <limits>
@@ -54,7 +54,7 @@
 #define _LIBCPP_NO_THREAD_SAFETY_ANALYSIS
 #endif
 
-typedef ::timespec __libcpp_timespec_t;
+typedef std::timespec __libcpp_timespec_t;
 #endif // !defined(_LIBCPP_HAS_NO_THREADS)
 
 _LIBCPP_BEGIN_NAMESPACE_STD


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138528.477996.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221125/156fa525/attachment.bin>


More information about the libcxx-commits mailing list