aboutsummaryrefslogtreecommitdiff
path: root/butl/process
diff options
context:
space:
mode:
Diffstat (limited to 'butl/process')
-rw-r--r--butl/process9
1 files changed, 5 insertions, 4 deletions
diff --git a/butl/process b/butl/process
index 19bea3a..31cb681 100644
--- a/butl/process
+++ b/butl/process
@@ -30,13 +30,14 @@ namespace butl
#ifndef _WIN32
process_error (int e, bool child)
- : system_error (e, std::system_category ()), child_ (child) {}
+ : system_error (e, std::generic_category ()), child_ (child) {}
#else
process_error (int e, bool child = false)
- : system_error (e, std::system_category ()), child_ (child) {}
+ : system_error (e, std::generic_category ()), child_ (child) {}
- process_error (const std::string& d, int e = ECHILD)
- : system_error (e, std::system_category (), d), child_ (false) {}
+ process_error (const std::string& d, int fallback_errno_code = 0)
+ : system_error (fallback_errno_code, std::system_category (), d),
+ child_ (false) {}
#endif
private: