summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-09-06 15:51:45 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-09-06 15:51:45 +0000
commit1363159d741f4af745998f110252b0a12cea260c (patch)
tree95a7df49e1eb7bbc77c647506b86e5c5985b9086
parent0b2872c78458e142ee7fc441243afa7903178c27 (diff)
parent32dde03332e9822d751ab71fc38c7bda48ec811c (diff)
downloadlibhardware-1363159d741f4af745998f110252b0a12cea260c.tar.gz
Merge "Don't rely on transitively included headers"
-rw-r--r--include/hardware/thermal.h1
-rw-r--r--modules/hwcomposer/hwcomposer.cpp1
-rw-r--r--modules/local_time/local_time_hw.c2
3 files changed, 3 insertions, 1 deletions
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 <stdbool.h>
#include <stdint.h>
+#include <float.h>
#include <sys/cdefs.h>
#include <sys/types.h>
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 <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 b38d8a52..a2d1a9e5 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>