summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/Android.mk3
-rw-r--r--audio/audio_hw.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/audio/Android.mk b/audio/Android.mk
index c1ba5640..0a02789e 100644
--- a/audio/Android.mk
+++ b/audio/Android.mk
@@ -22,8 +22,11 @@ LOCAL_PATH := $(call my-dir)
# required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
include $(CLEAR_VARS)
+LOCAL_HEADER_LIBRARIES += libhardware_headers
LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_RELATIVE_PATH := hw
+LOCAL_VENDOR_MODULE := true
+
LOCAL_SRC_FILES := audio_hw.c
LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa
LOCAL_CFLAGS := -Wno-unused-parameter
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index ceeea8c9..56b3e141 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -23,8 +23,9 @@
#include <stdint.h>
#include <sys/time.h>
#include <stdlib.h>
+#include <unistd.h>
-#include <cutils/log.h>
+#include <log/log.h>
#include <cutils/str_parms.h>
#include <cutils/properties.h>