applypatch: Compile libimgpatch for target and host.

update_engine need it for the new IMGDIFF operation.

Also removed __unused in ApplyImagePatch() as I got error building it
for the host, and I think it's dangerous not checking the size of the
input.

Test: mma
Bug: 26628339

Change-Id: I22d4cd55c2c3f87697d6afdf10e8106fef7d1a9c
This commit is contained in:
Sen Jiang
2016-01-22 20:49:07 +08:00
parent 5797bf9c90
commit 0cce9cda0c
4 changed files with 69 additions and 2 deletions

View File

@@ -22,6 +22,7 @@
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <malloc.h>
#include <unistd.h>