diff options
Diffstat (limited to 'src/common/captureFile.h')
-rwxr-xr-x | src/common/captureFile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/captureFile.h b/src/common/captureFile.h index d87e57b6..a552d501 100755 --- a/src/common/captureFile.h +++ b/src/common/captureFile.h @@ -25,6 +25,7 @@ limitations under the License. #include <stdlib.h> #include <string> #include <iostream> +#include <cmath> #ifdef WIN32 #pragma warning(disable:4786) @@ -87,7 +88,7 @@ public: } double diff(const CPktNsecTimeStamp & obj){ - return (abs(getNsec() - obj.getNsec() ) ); + return (std::abs(getNsec() - obj.getNsec() ) ); } void Dump(FILE *fd); |