Merge "Build bootctrl.* with BOARD_VNDK_VERSION"
diff --git a/Android.mk b/Android.mk
index 0be8dcb..03a11d3 100644
--- a/Android.mk
+++ b/Android.mk
@@ -5,10 +5,10 @@
 
 # HAL Shared library for the target. Used by libhardware.
 include $(CLEAR_VARS)
-LOCAL_C_INCLUDES += hardware/libhardware/include
 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/gpt-utils/inc
 LOCAL_CFLAGS += -Wall -Werror
 LOCAL_SHARED_LIBRARIES += liblog libgptutils libcutils
+LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
 LOCAL_SRC_FILES := boot_control.cpp
 LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM)
@@ -18,10 +18,10 @@
 
 # Static library for the target. Used by update_engine_sideload from recovery.
 include $(CLEAR_VARS)
-LOCAL_C_INCLUDES += hardware/libhardware/include
 LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/gpt-utils/inc
 LOCAL_CFLAGS += -Wall -Werror
 LOCAL_SHARED_LIBRARIES += liblog libgptutils libcutils
+LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers
 LOCAL_SRC_FILES := boot_control.cpp
 LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM)
 include $(BUILD_STATIC_LIBRARY)
diff --git a/boot_control.cpp b/boot_control.cpp
index 539c52c..435ea2f 100644
--- a/boot_control.cpp
+++ b/boot_control.cpp
@@ -35,7 +35,7 @@
 #endif
 #include <errno.h>
 #define LOG_TAG "bootcontrolhal"
-#include <cutils/log.h>
+#include <log/log.h>
 #include <hardware/boot_control.h>
 #include <stdio.h>
 #include <string.h>