Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Add missing include cmath in port.cpp #306

Merged
merged 1 commit into from
May 15, 2020

Conversation

quanterium
Copy link
Contributor

While attempting to build HEAD on CentOS 8.1 I encountered the following error:

port.cpp: In member function ‘void Port::setAveragePacketRate(double)’:
port.cpp:192:18: error: ‘isnan’ is not a member of ‘std’
         if (std::isnan(rate))
                  ^~~~~
port.cpp: In member function ‘void Port::setAverageBitRate(double)’:
port.cpp:271:18: error: ‘isnan’ is not a member of ‘std’
         if (std::isnan(rate))
                  ^~~~~

Adding #include <cmath> to client/port.cpp allowed ostinato to compile successfully.

@pstavirs pstavirs merged commit 6f7cbae into pstavirs:master May 15, 2020
@pstavirs
Copy link
Owner

Thanks for the PR @quanterium!

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants