summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Verma <vvinay@codeaurora.org>2018-04-29 14:08:30 +0530
committerDavid Ng <dave@codeaurora.org>2018-06-04 15:11:47 -0700
commit2fd9c127563a9b64780340e3161f010377d9500f (patch)
treec59702db49e4b76b3e48fe9219f1b8413522af8d
parent32e093d10dbb8a93373e8c67bc43e340de94f25f (diff)
downloadvendor_qcom_opensource_power-2fd9c127563a9b64780340e3161f010377d9500f.tar.gz
vendor_qcom_opensource_power-2fd9c127563a9b64780340e3161f010377d9500f.tar.bz2
vendor_qcom_opensource_power-2fd9c127563a9b64780340e3161f010377d9500f.zip
power: Fix VNDK Compilation Errors
VNDK restrictions doesn't includes standard headers by default, add them explicitly. Change-Id: I4c72a28ffa141ecadcfe47cc7c1f62f2a0c8576e
-rw-r--r--power-845.c2
-rw-r--r--power.c1
-rw-r--r--powerhintparser.c1
-rw-r--r--utils.c1
4 files changed, 5 insertions, 0 deletions
diff --git a/power-845.c b/power-845.c
index ca6f421..9248f38 100644
--- a/power-845.c
+++ b/power-845.c
@@ -37,6 +37,8 @@
#include <fcntl.h>
#include <dlfcn.h>
#include <stdlib.h>
+#include <pthread.h>
+#include <unistd.h>
#define LOG_TAG "QTI PowerHAL"
#include <utils/Log.h>
diff --git a/power.c b/power.c
index 05a09ba..051cd5a 100644
--- a/power.c
+++ b/power.c
@@ -36,6 +36,7 @@
#include <fcntl.h>
#include <dlfcn.h>
#include <stdlib.h>
+#include <unistd.h>
#define LOG_TAG "QTI PowerHAL"
#include <utils/Log.h>
diff --git a/powerhintparser.c b/powerhintparser.c
index 7dd5be2..6d8646f 100644
--- a/powerhintparser.c
+++ b/powerhintparser.c
@@ -32,6 +32,7 @@
#include <cutils/properties.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
+#include <unistd.h>
#include "powerhintparser.h"
#define LOG_TAG "QTI PowerHAL"
diff --git a/utils.c b/utils.c
index e1e436c..cf8c360 100644
--- a/utils.c
+++ b/utils.c
@@ -33,6 +33,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "utils.h"
#include "list.h"