system/media build with BOARD_VNDK_VERSION
Bug: 37342627
Test: cd system/media && mma -j64 -k BOARD_VNDK_VERSION=current
Change-Id: I7f99fbe685a960f0506398cdb21a7d86d1d8d4a1
diff --git a/audio_utils/Android.bp b/audio_utils/Android.bp
index bde8b4a..f0f0097 100644
--- a/audio_utils/Android.bp
+++ b/audio_utils/Android.bp
@@ -35,10 +35,12 @@
header_libs: [
"libaudio_system_headers",
+ "libutils_headers",
],
export_header_lib_headers: [
"libaudio_system_headers",
+ "libutils_headers",
],
shared_libs: [
diff --git a/audio_utils/PowerLog.cpp b/audio_utils/PowerLog.cpp
index ab0dcaa..15048ba 100644
--- a/audio_utils/PowerLog.cpp
+++ b/audio_utils/PowerLog.cpp
@@ -23,6 +23,7 @@
#include <math.h>
#include <sstream>
#include <stdint.h>
+#include <unistd.h>
#include <audio_utils/clock.h>
#include <audio_utils/power.h>