diff options
author | Jiyong Park <jiyong@google.com> | 2017-09-06 12:10:07 +0900 |
---|---|---|
committer | Isaac Chen <isaacchen@isaacchen.cn> | 2018-09-05 00:00:08 +0000 |
commit | 5a86a2763fab4f0fe5bf57674db98d116a966d7f (patch) | |
tree | 28034ba7972fc07a9317a027241b4f904995f6e0 /gps/gnss | |
parent | 465ccf760808afe8d471687d32b46965bfee0d29 (diff) |
wayne: Don't rely on transitively included headers
One must explicitly include what it need.
time.h for struct tm.
sys/time.h for gettimeofday, etc.
Bug: 37629934
Test: build
Merged-In: Iacd5317d958f61df062fca40fbf2e8992c7fbb44
Change-Id: I19e1043f23dbe85836b73714a4f1440159ebe419
Diffstat (limited to 'gps/gnss')
-rw-r--r-- | gps/gnss/XtraSystemStatusObserver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gps/gnss/XtraSystemStatusObserver.cpp b/gps/gnss/XtraSystemStatusObserver.cpp index 2855c0d..e27e698 100644 --- a/gps/gnss/XtraSystemStatusObserver.cpp +++ b/gps/gnss/XtraSystemStatusObserver.cpp @@ -32,6 +32,7 @@ #include <sys/un.h> #include <errno.h> #include <ctype.h> +#include <unistd.h> #include <cutils/properties.h> #include <math.h> #include <arpa/inet.h> |