commit | 32dde03332e9822d751ab71fc38c7bda48ec811c | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Wed Sep 06 12:16:25 2017 +0900 |
committer | Jiyong Park <jiyong@google.com> | Wed Sep 06 12:17:06 2017 +0900 |
tree | 95a7df49e1eb7bbc77c647506b86e5c5985b9086 | |
parent | 0b2872c78458e142ee7fc441243afa7903178c27 [diff] |
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
diff --git a/modules/hwcomposer/hwcomposer.cpp b/modules/hwcomposer/hwcomposer.cpp index fd4e90d..31e362a 100644 --- a/modules/hwcomposer/hwcomposer.cpp +++ b/modules/hwcomposer/hwcomposer.cpp
@@ -17,6 +17,7 @@ #include <errno.h> #include <fcntl.h> #include <malloc.h> +#include <string.h> #include <cutils/atomic.h> #include <log/log.h>
diff --git a/modules/local_time/local_time_hw.c b/modules/local_time/local_time_hw.c index b38d8a5..a2d1a9e 100644 --- a/modules/local_time/local_time_hw.c +++ b/modules/local_time/local_time_hw.c
@@ -21,7 +21,7 @@ #include <malloc.h> #include <stdint.h> #include <string.h> -#include <sys/time.h> +#include <time.h> #include <log/log.h>