From b02464990b964df6893877546e7aa475f5a83045 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 16 Feb 2018 18:54:34 -0500 Subject: [PATCH] work around netbsd quarkyness --- libi2pd/NTCPSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/NTCPSession.cpp b/libi2pd/NTCPSession.cpp index a340089c..85c32743 100644 --- a/libi2pd/NTCPSession.cpp +++ b/libi2pd/NTCPSession.cpp @@ -171,7 +171,7 @@ namespace transport return; } } -#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 7) +#if ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 7)) || defined(__NetBSD__) // due the bug in gcc 4.7. std::shared_future.get() is not const if (!m_DHKeysPair) m_DHKeysPair = transports.GetNextDHKeysPair (); @@ -250,7 +250,7 @@ namespace transport } else { -#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 7) +#if ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 7)) || defined(__NetBSD__) // due the bug in gcc 4.7. std::shared_future.get() is not const CreateAESKey (m_Establisher->phase2.pubKey); HandlePhase2 ();