Skip to content

Commit 08f756b

Browse files
committed
Replace locale-dependent std::strerror with SysErrorString
1 parent d8e4ba4 commit 08f756b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/subprocess.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Documentation for C++ subprocessing library.
3636
#ifndef BITCOIN_UTIL_SUBPROCESS_H
3737
#define BITCOIN_UTIL_SUBPROCESS_H
3838

39+
#include <util/syserror.h>
40+
3941
#include <algorithm>
4042
#include <cassert>
4143
#include <csignal>
@@ -150,7 +152,7 @@ class OSError: public std::runtime_error
150152
{
151153
public:
152154
OSError(const std::string& err_msg, int err_code):
153-
std::runtime_error( err_msg + ": " + std::strerror(err_code) )
155+
std::runtime_error(err_msg + ": " + SysErrorString(err_code))
154156
{}
155157
};
156158

0 commit comments

Comments
 (0)