From b82b3ee7f85fb4894cfd19d6654d7e414c8c937d Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 26 Jun 2017 15:33:36 +0900 Subject: [PATCH] Build android.hardware.power@1.1-service.wahoo with BOARD_VNDK_VERSION Explicitly include unistd.h since the header is not provided when building with BOARD_VNDK_VERSION. Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j android.hardware.power@1.1-service.wahoo Change-Id: Iab69d5deae9faac27338bf8e97e09997775f7461 --- power/powerhintparser.c | 3 ++- power/utils.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/power/powerhintparser.c b/power/powerhintparser.c index 6073c959..f9f3af95 100644 --- a/power/powerhintparser.c +++ b/power/powerhintparser.c @@ -29,7 +29,8 @@ #define LOG_TAG "QCOM PowerHAL" -#include +#include +#include #include #include "powerhintparser.h" diff --git a/power/utils.c b/power/utils.c index ef7e366e..9661e5ea 100644 --- a/power/utils.c +++ b/power/utils.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "utils.h" #include "list.h"