summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--applypatch/Android.mk4
-rw-r--r--minui/events.cpp1
-rw-r--r--otafault/ota_io.cpp1
-rw-r--r--otautil/SysUtil.cpp1
4 files changed, 5 insertions, 2 deletions
diff --git a/applypatch/Android.mk b/applypatch/Android.mk
index c9ce34bc3..8fac2ffed 100644
--- a/applypatch/Android.mk
+++ b/applypatch/Android.mk
@@ -120,10 +120,10 @@ LOCAL_STATIC_LIBRARIES := \
libedify \
libotafault \
libotautil \
- libbspatch \
- libbz
+ libbspatch
LOCAL_SHARED_LIBRARIES := \
libbase \
+ libbz \
libcrypto \
liblog \
libz \
diff --git a/minui/events.cpp b/minui/events.cpp
index 24c2a8277..2894c3b6b 100644
--- a/minui/events.cpp
+++ b/minui/events.cpp
@@ -15,6 +15,7 @@
*/
#include <dirent.h>
+#include <errno.h>
#include <fcntl.h>
#include <linux/input.h>
#include <stdio.h>
diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp
index 1308973a5..63ef18e26 100644
--- a/otafault/ota_io.cpp
+++ b/otafault/ota_io.cpp
@@ -26,6 +26,7 @@
#include <map>
#include <mutex>
+#include <string>
#include <android-base/thread_annotations.h>
diff --git a/otautil/SysUtil.cpp b/otautil/SysUtil.cpp
index 0655c4778..48336ad07 100644
--- a/otautil/SysUtil.cpp
+++ b/otautil/SysUtil.cpp
@@ -16,6 +16,7 @@
#include "otautil/SysUtil.h"
+#include <errno.h> // TEMP_FAILURE_RETRY
#include <fcntl.h>
#include <stdint.h> // SIZE_MAX
#include <sys/mman.h>