mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-16 00:12:43 +00:00
work around netbsd quarkyness
This commit is contained in:
parent
4988a32d33
commit
b02464990b
@ -171,7 +171,7 @@ namespace transport
|
|||||||
return;
|
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
|
// due the bug in gcc 4.7. std::shared_future.get() is not const
|
||||||
if (!m_DHKeysPair)
|
if (!m_DHKeysPair)
|
||||||
m_DHKeysPair = transports.GetNextDHKeysPair ();
|
m_DHKeysPair = transports.GetNextDHKeysPair ();
|
||||||
@ -250,7 +250,7 @@ namespace transport
|
|||||||
}
|
}
|
||||||
else
|
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
|
// due the bug in gcc 4.7. std::shared_future.get() is not const
|
||||||
CreateAESKey (m_Establisher->phase2.pubKey);
|
CreateAESKey (m_Establisher->phase2.pubKey);
|
||||||
HandlePhase2 ();
|
HandlePhase2 ();
|
||||||
|
Loading…
Reference in New Issue
Block a user