summaryrefslogtreecommitdiffstats
path: root/applypatch
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-10 00:16:24 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-10-10 00:16:24 +0200
commitcbd8479410f0e80172291ec895875866bd1b1321 (patch)
treedd389c0e573affbdb019988499801d169e92e92f /applypatch
parentMerge "Don't include "error_code.h" in edify/expr.h." am: d999ced1d1 am: e196918f54 am: 3bc65953ab (diff)
parentMerge "applypatch: Forward declare struct Value." am: 7a3fc2de8e am: b7c0ce4201 (diff)
downloadandroid_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.tar
android_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.tar.gz
android_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.tar.bz2
android_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.tar.lz
android_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.tar.xz
android_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.tar.zst
android_bootable_recovery-cbd8479410f0e80172291ec895875866bd1b1321.zip
Diffstat (limited to 'applypatch')
-rw-r--r--applypatch/Android.mk2
-rw-r--r--applypatch/bspatch.cpp3
-rw-r--r--applypatch/imgpatch.cpp2
-rw-r--r--applypatch/include/applypatch/applypatch.h3
4 files changed, 8 insertions, 2 deletions
diff --git a/applypatch/Android.mk b/applypatch/Android.mk
index f5dda2bc4..db72e8eee 100644
--- a/applypatch/Android.mk
+++ b/applypatch/Android.mk
@@ -53,6 +53,7 @@ LOCAL_C_INCLUDES := \
bootable/recovery
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := \
+ libedify \
libcrypto \
libbspatch \
libbase \
@@ -77,6 +78,7 @@ LOCAL_C_INCLUDES := \
bootable/recovery
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := \
+ libedify \
libcrypto \
libbspatch \
libbase \
diff --git a/applypatch/bspatch.cpp b/applypatch/bspatch.cpp
index 65ee614ef..b2f29fbd6 100644
--- a/applypatch/bspatch.cpp
+++ b/applypatch/bspatch.cpp
@@ -30,6 +30,7 @@
#include <openssl/sha.h>
#include "applypatch/applypatch.h"
+#include "edify/expr.h"
#include "print_sha1.h"
void ShowBSDiffLicense() {
@@ -91,4 +92,4 @@ int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value
}
}
return result;
-} \ No newline at end of file
+}
diff --git a/applypatch/imgpatch.cpp b/applypatch/imgpatch.cpp
index df75f98d4..7a43ddbef 100644
--- a/applypatch/imgpatch.cpp
+++ b/applypatch/imgpatch.cpp
@@ -37,6 +37,8 @@
#include <openssl/sha.h>
#include <zlib.h>
+#include "edify/expr.h"
+
static inline int64_t Read8(const void *address) {
return android::base::get_unaligned<int64_t>(address);
}
diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h
index 581360ef1..2a3b3ef39 100644
--- a/applypatch/include/applypatch/applypatch.h
+++ b/applypatch/include/applypatch/applypatch.h
@@ -27,7 +27,8 @@
#include <openssl/sha.h>
-#include "edify/expr.h"
+// Forward declaration to avoid including "edify/expr.h" in the header.
+struct Value;
struct FileContents {
uint8_t sha1[SHA_DIGEST_LENGTH];