aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-04-19 11:19:45 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-04-23 18:22:58 +0100
commit08f756bd370c3e100b186c7e24bef6a033575b29 (patch)
treebda062bed8b868ea4d1e0f7d4b2970f64611334d /src/util
parentd8e4ba4d0568769782b8c19c82e955c4aee73477 (diff)
downloadbitcoin-08f756bd370c3e100b186c7e24bef6a033575b29.tar.xz
Replace locale-dependent `std::strerror` with `SysErrorString`
Diffstat (limited to 'src/util')
-rw-r--r--src/util/subprocess.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/subprocess.h b/src/util/subprocess.h
index 4a85ae9268..4acfa8ff83 100644
--- a/src/util/subprocess.h
+++ b/src/util/subprocess.h
@@ -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))
{}
};