Browse Source

work around netbsd quarkyness

pull/1116/head
Jeff Becker 6 years ago
parent
commit
b02464990b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  1. 4
      libi2pd/NTCPSession.cpp

4
libi2pd/NTCPSession.cpp

@ -171,7 +171,7 @@ namespace transport @@ -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 @@ -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 ();

Loading…
Cancel
Save