Build audio.primary.* with BOARD_VNDK_VERSION
Add libhardware_headers to the dependency list since
hardware/libhardware/include is not added to the global include path
when building with BOARD_VNDK_VERSION. Also, a few headers - pthread.h,
unistd.h - are explicitly added.
Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j audio.primary.msm8998
Change-Id: I908aed7cf9c5aa970d1e4486dcff32d20d44aebd
diff --git a/hal/audio_extn/usb.c b/hal/audio_extn/usb.c
index 6b3ee7b..86b75d8 100644
--- a/hal/audio_extn/usb.c
+++ b/hal/audio_extn/usb.c
@@ -22,6 +22,7 @@
#include <cutils/log.h>
#include <cutils/str_parms.h>
#include <sys/ioctl.h>
+#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <system/audio.h>