[libcxx-commits] [libcxx] [libc++] Add missing <cerrno> include in threading support headers (PR #80311)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 1 09:24:23 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

<details>
<summary>Changes</summary>

This was incorrectly removed when I split up the header.

---
Full diff: https://github.com/llvm/llvm-project/pull/80311.diff


2 Files Affected:

- (modified) libcxx/include/__thread/support/c11.h (+1) 
- (modified) libcxx/include/__thread/support/pthread.h (+1-1) 


``````````diff
diff --git a/libcxx/include/__thread/support/c11.h b/libcxx/include/__thread/support/c11.h
index 896264891cc45..f4377ebcdf79a 100644
--- a/libcxx/include/__thread/support/c11.h
+++ b/libcxx/include/__thread/support/c11.h
@@ -13,6 +13,7 @@
 #include <__chrono/convert_to_timespec.h>
 #include <__chrono/duration.h>
 #include <__config>
+#include <cerrno>
 #include <ctime>
 #include <threads.h>
 
diff --git a/libcxx/include/__thread/support/pthread.h b/libcxx/include/__thread/support/pthread.h
index d0b8367e448f4..9ba33baa8745f 100644
--- a/libcxx/include/__thread/support/pthread.h
+++ b/libcxx/include/__thread/support/pthread.h
@@ -15,8 +15,8 @@
 #include <__chrono/duration.h>
 #include <__config>
 #include <__fwd/hash.h>
+#include <cerrno>
 #include <ctime>
-#include <errno.h>
 #include <pthread.h>
 #include <sched.h>
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/80311


More information about the libcxx-commits mailing list