From 1e866bec7499330d54d3a79dc0ac8e63dd920763 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 Mar 2017 00:50:18 +0300 Subject: Fix creating system_error to use generic_category for errno codes --- bpkg/bpkg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bpkg/bpkg.cxx') 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"); -- cgit v1.1