Merge "Drop -Wno-unused-parameter."
diff --git a/applypatch/Android.mk b/applypatch/Android.mk
index c9ce34b..8fac2ff 100644
--- a/applypatch/Android.mk
+++ b/applypatch/Android.mk
@@ -120,10 +120,10 @@
     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 24c2a82..2894c3b 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 1308973..63ef18e 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 0655c47..48336ad 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>