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>.