From 32dde03332e9822d751ab71fc38c7bda48ec811c Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Wed, 6 Sep 2017 12:16:25 +0900 Subject: [PATCH] Don't rely on transitively included headers One must explicitly include what it need. time.h for clock_gettime float.h for FLT_MAX string.h for memset Bug: 37629934 Test: build Change-Id: I1030a9c9ff3c2de4c5febabc3064d6976e9535cf --- include/hardware/thermal.h | 1 + modules/hwcomposer/hwcomposer.cpp | 1 + modules/local_time/local_time_hw.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/hardware/thermal.h b/include/hardware/thermal.h index b5b6e1db..5db6ee0e 100644 --- a/include/hardware/thermal.h +++ b/include/hardware/thermal.h @@ -19,6 +19,7 @@ #include #include +#include #include #include diff --git a/modules/hwcomposer/hwcomposer.cpp b/modules/hwcomposer/hwcomposer.cpp index fd4e90dd..31e362af 100644 --- a/modules/hwcomposer/hwcomposer.cpp +++ b/modules/hwcomposer/hwcomposer.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include diff --git a/modules/local_time/local_time_hw.c b/modules/local_time/local_time_hw.c index b38d8a52..a2d1a9e5 100644 --- a/modules/local_time/local_time_hw.c +++ b/modules/local_time/local_time_hw.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include