mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Replace locale-dependent std::strerror with SysErrorString
This commit is contained in:
parent
d8e4ba4d05
commit
08f756bd37
1 changed files with 3 additions and 1 deletions
|
|
@ -36,6 +36,8 @@ Documentation for C++ subprocessing library.
|
|||
#ifndef BITCOIN_UTIL_SUBPROCESS_H
|
||||
#define BITCOIN_UTIL_SUBPROCESS_H
|
||||
|
||||
#include <util/syserror.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <csignal>
|
||||
|
|
@ -150,7 +152,7 @@ class OSError: public std::runtime_error
|
|||
{
|
||||
public:
|
||||
OSError(const std::string& err_msg, int err_code):
|
||||
std::runtime_error( err_msg + ": " + std::strerror(err_code) )
|
||||
std::runtime_error(err_msg + ": " + SysErrorString(err_code))
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue