libstdc++: Add <errno.h> to <bits/std_mutex.h>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 13 Jan 2023 16:37:57 +0000 (16:37 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 13 Jan 2023 17:37:37 +0000 (17:37 +0000)
This needs to be included explicitly now that we don't include all of
<system_error> here.

libstdc++-v3/ChangeLog:

* include/bits/std_mutex.h: Include <errno.h>.

libstdc++-v3/include/bits/std_mutex.h

index bc51535..f74ddc4 100644 (file)
@@ -36,6 +36,7 @@
 # include <bits/c++0x_warning.h>
 #else
 
+#include <errno.h> // EBUSY
 #include <bits/functexcept.h>
 #include <bits/gthr.h>