aboutsummaryrefslogtreecommitdiff
path: root/gps/gnss
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2017-09-06 12:10:07 +0900
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-04-22 11:54:16 +0200
commite330e9795d024b3b190159dadffe41e71146d0ff (patch)
tree38eed1c55f50a637c39b71c9d1989a2a5722e6ee /gps/gnss
parentce3968b55ae8712a60a97fb95f49a90b1f74ef7f (diff)
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.cpp1
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>