From 27556d089f8496c2acb72182ce7add94938eb749 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Wed, 22 May 2019 14:48:35 -0700 Subject: Some clean ups to the updater Remove some unnecessary includes or forward declarations. And include the correct headers to build host executables. Bug: 131911365 Test: unit tests pass Change-Id: I62e75f60678159fe24619a4bd386b1416f1a5b5d --- updater/install.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'updater/install.cpp') diff --git a/updater/install.cpp b/updater/install.cpp index 6b15eaa3a..c82351ec4 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -53,7 +53,6 @@ #include #include #include -#include #include #include "edify/expr.h" @@ -65,6 +64,10 @@ #include "otautil/print_sha1.h" #include "otautil/sysutil.h" +#ifndef __ANDROID__ +#include // for strlcpy +#endif + static bool UpdateBlockDeviceNameForPartition(UpdaterInterface* updater, Partition* partition) { CHECK(updater); std::string name = updater->FindBlockDeviceName(partition->name); -- cgit v1.2.3