Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ned14/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2022-04-16 03:13:01 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2022-04-16 03:13:01 +0300
commite99466d0c63b7e73450340ed2ebb1380eafa198b (patch)
treee8b14a9be09127105dae05dbbefa31659c8a2c9f
parent5b0ed834d4875156af5654c60279ccc0ef399f47 (diff)
Build fixes for recent commits.
-rw-r--r--include/llfio/v2.0/detail/impl/posix/pipe_handle.ipp2
-rw-r--r--include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llfio/v2.0/detail/impl/posix/pipe_handle.ipp b/include/llfio/v2.0/detail/impl/posix/pipe_handle.ipp
index 89c882ef..4d419628 100644
--- a/include/llfio/v2.0/detail/impl/posix/pipe_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/posix/pipe_handle.ipp
@@ -105,7 +105,7 @@ result<pipe_handle> pipe_handle::pipe(pipe_handle::path_view_type path, pipe_han
#ifdef __APPLE__
native_handle_type dirhfd_;
dirhfd_.fd = dirhfd;
- path_handle dirhfdwrap(dirhfd_, path_handle::caching::none, path_handle::flag::none);
+ path_handle dirhfdwrap(dirhfd_, path_handle::flag::none);
auto dirhpath = dirhfdwrap.current_path();
dirhfdwrap.release();
OUTCOME_TRY(std::move(dirhpath));
diff --git a/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp b/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp
index be01c53b..e9a86f98 100644
--- a/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp
+++ b/include/llfio/v2.0/detail/impl/tls_socket_sources/openssl.ipp
@@ -256,14 +256,14 @@ template <class T> inline result<void> openssl_error(T *inst, unsigned long errc
abort();
}
auto ret = (ERR_GET_REASON(errcode) == 2) ? std::move(inst->_write_error) : std::move(inst->_read_error);
-#if 1
+#if LLFIO_OPENSSL_ENABLE_DEBUG_PRINTING
std::lock_guard<std::mutex> g(detail::openssl_printing_lock);
std::cerr << "OpenSSL underlying error: " << ret.error().message().c_str() << std::endl;
#endif
return ret;
}
detail::openssl_code ret(errcode);
-#if 1
+#if LLFIO_OPENSSL_ENABLE_DEBUG_PRINTING
std::lock_guard<std::mutex> g(detail::openssl_printing_lock);
std::cerr << "OpenSSL error: " << ret.message().c_str() << std::endl;
#endif
@@ -277,7 +277,7 @@ inline result<void> openssl_error(std::nullptr_t, unsigned long errcode = ERR_ge
abort();
}
detail::openssl_code ret(errcode);
-#if 1
+#if LLFIO_OPENSSL_ENABLE_DEBUG_PRINTING
std::lock_guard<std::mutex> g(detail::openssl_printing_lock);
std::cerr << "OpenSSL error: " << ret.message().c_str() << std::endl;
#endif