1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
Description: Various headers are missing which causes compiler errors.
Author: Kai-Chung Yan (殷啟聰)
Last-Update: 2016-09-17
Forwarded: no
--- a/include/cutils/jstring.h
+++ b/include/cutils/jstring.h
@@ -19,6 +19,7 @@
#include <stdint.h>
#include <stddef.h>
+#include <uchar.h>
#ifdef __cplusplus
extern "C" {
--- a/include/utils/Unicode.h
+++ b/include/utils/Unicode.h
@@ -19,6 +19,7 @@
#include <sys/types.h>
#include <stdint.h>
+#include <uchar.h>
extern "C" {
--- a/include/utils/String8.h
+++ b/include/utils/String8.h
@@ -23,6 +23,7 @@
#include <string.h> // for strcmp
#include <stdarg.h>
+#include <uchar.h>
// ---------------------------------------------------------------------------
--- a/base/file.cpp
+++ b/base/file.cpp
@@ -22,6 +22,7 @@
#include <sys/types.h>
#include <string>
+#include <cstring>
#include "android-base/macros.h" // For TEMP_FAILURE_RETRY on Darwin.
#include "android-base/utf8.h"
--- a/base/logging.cpp
+++ b/base/logging.cpp
@@ -35,6 +35,7 @@
#include <string>
#include <utility>
#include <vector>
+#include <cstring>
#ifndef _WIN32
#include <mutex>
--- a/base/errors_unix.cpp
+++ b/base/errors_unix.cpp
@@ -17,6 +17,7 @@
#include "android-base/errors.h"
#include <errno.h>
+#include <cstring>
namespace android {
namespace base {
--- a/libbacktrace/BacktraceMap.cpp
+++ b/libbacktrace/BacktraceMap.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include <algorithm>
#include <ctype.h>
#include <stdint.h>
#include <sys/types.h>
--- a/libziparchive/zip_writer.cc
+++ b/libziparchive/zip_writer.cc
@@ -24,6 +24,7 @@
#include <cassert>
#include <cstdio>
+#include <cstring>
#include <memory>
#include <vector>
#include <zlib.h>
|