diff --git a/include/headers.h b/include/headers.h
index 5782171..8073d47 100644
--- a/include/headers.h
+++ b/include/headers.h
@@ -82,7 +82,6 @@
#include <errno.h>
#include <string.h>
#include <time.h>
-#include <math.h>
#include <float.h>
#include <sys/types.h>
diff --git a/src/Client.cpp b/src/Client.cpp
index 5a5ec24..29622fe 100644
--- a/src/Client.cpp
+++ b/src/Client.cpp
@@ -52,6 +52,7 @@
* ------------------------------------------------------------------- */
#include <time.h>
+#include <cmath>
#include "headers.h"
#include "Client.hpp"
#include "Thread.h"
diff --git a/src/ReportDefault.c b/src/ReportDefault.c
index b537fd2..b0550eb 100644
--- a/src/ReportDefault.c
+++ b/src/ReportDefault.c
@@ -49,6 +49,7 @@
*
* ________________________________________________________________ */
+#include <math.h>
#include "headers.h"
#include "Settings.hpp"
#include "util.h"
diff --git a/src/Reporter.c b/src/Reporter.c
index 9037b0a..57bd8d0 100644
--- a/src/Reporter.c
+++ b/src/Reporter.c
@@ -49,6 +49,7 @@
*
* ________________________________________________________________ */
+#include <math.h>
#include "headers.h"
#include "Settings.hpp"
#include "util.h"
diff --git a/src/Server.cpp b/src/Server.cpp
index 190aa94..e4e2fba 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -54,6 +54,7 @@
* ------------------------------------------------------------------- */
#define HEADERS()
+#include <cmath>
#include "headers.h"
#include "Server.hpp"
#include "List.h"