OSDN Git Service

fix missing headers
authorTri Vo <trong@google.com>
Fri, 23 Jun 2017 22:42:32 +0000 (15:42 -0700)
committerTri Vo <trong@google.com>
Mon, 26 Jun 2017 20:37:24 +0000 (13:37 -0700)
Bug: 33241851
Test: cd system/media && mma -j64 -k BOARD_VNDK_VERSION=current
Change-Id: I7c6e4b271b365f50c376af2925d0f8cbe8e58551

alsa_utils/Android.bp
alsa_utils/alsa_device_proxy.c
audio_utils/Android.bp
audio_utils/mono_blend.cpp

index 247419f..db6beb1 100644 (file)
@@ -22,6 +22,12 @@ cc_library_shared {
         "alsa_format.c",
     ],
     export_include_dirs: ["include"],
+    header_libs: [
+        "libaudio_system_headers",
+    ],
+    export_header_lib_headers: [
+        "libaudio_system_headers",
+    ],
     shared_libs: [
         "liblog",
         "libcutils",
index 73e4375..96b880d 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <errno.h>
 
+#include <stdio.h>
+
 #include "include/alsa_device_proxy.h"
 
 #include "include/alsa_logging.h"
index abec881..36023f5 100644 (file)
@@ -28,6 +28,14 @@ cc_library {
         "roundup.c",
     ],
 
+    header_libs: [
+        "libaudio_system_headers",
+    ],
+
+    export_header_lib_headers: [
+        "libaudio_system_headers",
+    ],
+
     shared_libs: [
         "libcutils",
         "liblog",
index 933ccf8..0ace077 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <math.h>
 #include <audio_utils/mono_blend.h>
-#include <utils/Log.h>
+#include <log/log.h>
 #include <audio_utils/limiter.h>
 
 // TODO: Speed up for special case of 2 channels?