commit | 2fb7a8f2187a61ef43c3d09fc67fc2ddd36f0871 | [log] [tgz] |
---|---|---|
author | Jiyong Park <jiyong@google.com> | Wed Sep 06 12:21:40 2017 +0900 |
committer | Jiyong Park <jiyong@google.com> | Wed Sep 06 15:30:32 2017 +0900 |
tree | aa2f357f5ba7ddf97b72056f19355d632f52105d | |
parent | 255b052947f5be61ab1ed59a6e09ded90eb025b0 [diff] |
Don't rely on transitively included headers One must explicitly include what it need. time.h for clock_gettime Bug: 37629934 Test: build Merged-In: I992eac637f373b204aa161b0b26f5563e952c27e Change-Id: I992eac637f373b204aa161b0b26f5563e952c27e
diff --git a/libutils/SystemClock.cpp b/libutils/SystemClock.cpp index 28fc351..73ec1be 100644 --- a/libutils/SystemClock.cpp +++ b/libutils/SystemClock.cpp
@@ -23,9 +23,9 @@ #include <utils/SystemClock.h> -#include <sys/time.h> #include <string.h> #include <errno.h> +#include <time.h> #include <cutils/compiler.h>