aboutsummaryrefslogtreecommitdiffstats
path: root/testing/android-tools/fix-build.patch
blob: d86ad54e5ef42ca87a6eded2d1e7d9bb2efc4161 (plain)
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
--- a/core/base/file.cpp
+++ b/core/base/file.cpp
@@ -20,6 +20,7 @@
 #include <fcntl.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <string.h>
 
 #include <string>
 
--- a/core/liblog/log_read.c
+++ b/core/liblog/log_read.c
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/cdefs.h>
 #include <unistd.h>
+#include <sys/user.h>
 
 #include <cutils/list.h>
 #include <cutils/sockets.h>

--- a/libselinux/src/label_internal.h
+++ b/libselinux/src/label_internal.h
@@ -10,6 +10,7 @@
 
 #include <stdlib.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #include <selinux/selinux.h>
 #include <selinux/label.h>
 #include "dso.h"
diff -upr core.orig/include/utils/Compat.h core/include/utils/Compat.h
--- a/core/include/utils/Compat.h	2016-07-10 15:30:25.935363345 +0200
+++ b/core/include/utils/Compat.h	2016-07-10 15:31:01.785149166 +0200
@@ -35,10 +35,11 @@ static inline ssize_t pread64(int fd, vo
 
 #endif /* __APPLE__ */
 
+#define DEFFILEMODE 0666
+
 #if defined(_WIN32)
 #define O_CLOEXEC O_NOINHERIT
 #define O_NOFOLLOW 0
-#define DEFFILEMODE 0666
 #endif /* _WIN32 */
 
 #if defined(_WIN32)
diff -upr core/adb/adb_auth_host.cpp core.orig/adb/adb_auth_host.cpp
--- a/core/adb/adb_auth_host.cpp	2016-04-22 04:11:37.000000000 +0200
+++ b/core/adb/adb_auth_host.cpp	2016-07-10 20:28:54.553727489 +0200
@@ -46,6 +46,7 @@
 #include <base/strings.h>
 #include <cutils/list.h>
 
+#include <openssl/bn.h>
 #include <openssl/evp.h>
 #include <openssl/objects.h>
 #include <openssl/pem.h>
diff -upr core.orig/include/ziparchive/zip_archive.h core/include/ziparchive/zip_archive.h
--- a/core/include/ziparchive/zip_archive.h	2016-07-10 20:41:30.509065561 +0200
+++ b/core/include/ziparchive/zip_archive.h	2016-07-10 20:41:47.117424874 +0200
@@ -23,6 +23,7 @@
 #include <stdint.h>
 #include <string.h>
 #include <sys/types.h>
+#include <sys/cdefs.h>
 #include <utils/Compat.h>
 
 __BEGIN_DECLS