summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2018-01-25 12:44:19 -0800
committerSteven Moreland <smoreland@google.com>2018-01-25 12:44:19 -0800
commita2364e24811e3887505d660f4c789334edd31768 (patch)
tree9ca1c2f4fe151c4d83607e8b4d2d23a91d5aaded
parent96fa6d14d453cdd84e0dd75870775a8fe759f56f (diff)
downloadgps-a2364e24811e3887505d660f4c789334edd31768.tar.gz
Fix missing transitive dependency for the VNDK.
When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. This sometimes causes certain system headers to not be included when they are not included by the VNDK version of headers. Test: building with BOARD_VNDK_VERSION=current finds undefined symbols Bug: 69526027 Change-Id: Ib245b83ed0f5a1a03db0ea8e0cd56fd1a650020d
-rw-r--r--msm8996/utils/LocTimer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/msm8996/utils/LocTimer.cpp b/msm8996/utils/LocTimer.cpp
index 70904b2..2d1f4a6 100644
--- a/msm8996/utils/LocTimer.cpp
+++ b/msm8996/utils/LocTimer.cpp
@@ -27,10 +27,11 @@
*
*/
-#include <stdio.h>
-#include <stdlib.h>
#include <time.h>
#include <errno.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <loc_timer.h>
#include <sys/timerfd.h>
#include <sys/epoll.h>