Make libqcomvoiceprocessing build with the VNDK.
When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This means that they receive restricted
sets of headers and that automatic global headers are restricted.
Test: build libqcomvoiceprocessing with BOARD_VNDK_VERSION=current
Bug: 37342627
Change-Id: I1500835ddf92bcff624281dea88e6da678064646
diff --git a/voice_processing/voice_processing.c b/voice_processing/voice_processing.c
index d2b4acb..8c6e7fc 100644
--- a/voice_processing/voice_processing.c
+++ b/voice_processing/voice_processing.c
@@ -18,6 +18,8 @@
/*#define LOG_NDEBUG 0*/
#include <stdlib.h>
#include <dlfcn.h>
+#include <unistd.h>
+
#include <cutils/log.h>
#include <cutils/list.h>
#include <hardware/audio_effect.h>