aboutsummaryrefslogtreecommitdiff
path: root/bpkg/bpkg.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:50:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:50:18 +0300
commit1e866bec7499330d54d3a79dc0ac8e63dd920763 (patch)
tree717132eecea39337bfeed6e6a4c6f5c9e7eba362 /bpkg/bpkg.cxx
parentdb6dda6cc3a3856844d40946ffe4eed6d3096ef9 (diff)
Fix creating system_error to use generic_category for errno codes
Diffstat (limited to 'bpkg/bpkg.cxx')
-rw-r--r--bpkg/bpkg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx
index 7e60725..57375a4 100644
--- a/bpkg/bpkg.cxx
+++ b/bpkg/bpkg.cxx
@@ -140,7 +140,7 @@ try
#ifndef _WIN32
if (signal (SIGPIPE, SIG_IGN) == SIG_ERR)
fail << "unable to ignore broken pipe (SIGPIPE) signal: "
- << system_error (errno, system_category ()); // Sanitize.
+ << system_error (errno, generic_category ()); // Sanitize.
#endif
argv_file_scanner scan (argc, argv, "--options-file");