summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/include/utils/date_time.h2
-rw-r--r--src/components/utils/src/date_time.cc4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/include/utils/date_time.h b/src/components/include/utils/date_time.h
index 3e649cfc28..17b4fafe38 100644
--- a/src/components/include/utils/date_time.h
+++ b/src/components/include/utils/date_time.h
@@ -33,7 +33,7 @@
#define SRC_COMPONENTS_INCLUDE_UTILS_DATE_TIME_H_
#include <stdint.h>
-#include "boost/date_time.hpp"
+#include "boost/date_time/posix_time/posix_time_duration.hpp"
namespace date_time {
diff --git a/src/components/utils/src/date_time.cc b/src/components/utils/src/date_time.cc
index 2802ed0f91..3ca6050b3f 100644
--- a/src/components/utils/src/date_time.cc
+++ b/src/components/utils/src/date_time.cc
@@ -30,9 +30,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include "utils/date_time.h"
+
#include <stdint.h>
#include <sys/time.h>
-#include "utils/date_time.h"
+#include "boost/date_time/posix_time/posix_time.hpp"
namespace bpt = boost::posix_time;
using namespace boost::date_time;