summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-12-25 20:23:54 -0800
committerKhem Raj <raj.khem@gmail.com>2022-12-27 09:55:18 -0800
commitc9ece4d422f721c37caa7675260d3decc883fb00 (patch)
tree3966acf4872a068e21637fedd4cd8c8bf4d55e50 /meta-oe/recipes-devtools
parentf586744ab04af1de1105b38afab17a04c77c5c42 (diff)
downloadmeta-openembedded-c9ece4d422f721c37caa7675260d3decc883fb00.tar.gz
android-tools: Define lseek64 = lseek on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r--meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch27
1 files changed, 12 insertions, 15 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch b/meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch
index b5d383f38..53f7bcb8e 100644
--- a/meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch
+++ b/meta-oe/recipes-devtools/android-tools/android-tools/core/0006-adb-Musl-fixes.patch
@@ -15,8 +15,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 adb/sysdeps.h | 12 ++++++------ 15 adb/sysdeps.h | 12 ++++++------
16 4 files changed, 20 insertions(+), 14 deletions(-) 16 4 files changed, 20 insertions(+), 14 deletions(-)
17 17
18diff --git a/adb/adb.h b/adb/adb.h
19index 44e5981bdc..bcdc49f63c 100644
20--- a/adb/adb.h 18--- a/adb/adb.h
21+++ b/adb/adb.h 19+++ b/adb/adb.h
22@@ -18,7 +18,9 @@ 20@@ -18,7 +18,9 @@
@@ -29,11 +27,9 @@ index 44e5981bdc..bcdc49f63c 100644
29 #include "adb_trace.h" 27 #include "adb_trace.h"
30 #include "transport.h" /* readx(), writex() */ 28 #include "transport.h" /* readx(), writex() */
31 29
32diff --git a/adb/disable_verity_service.c b/adb/disable_verity_service.c
33index ed3da52108..29fa3d65a9 100644
34--- a/adb/disable_verity_service.c 30--- a/adb/disable_verity_service.c
35+++ b/adb/disable_verity_service.c 31+++ b/adb/disable_verity_service.c
36@@ -14,25 +14,28 @@ 32@@ -14,25 +14,32 @@
37 * limitations under the License. 33 * limitations under the License.
38 */ 34 */
39 35
@@ -51,13 +47,18 @@ index ed3da52108..29fa3d65a9 100644
51 #include <sys/stat.h> 47 #include <sys/stat.h>
52 #include <fcntl.h> 48 #include <fcntl.h>
53 #include <inttypes.h> 49 #include <inttypes.h>
54+#include <unistd.h> 50-
55+#include <errno.h>
56+#include <stdbool.h>
57
58-#include "cutils/properties.h" 51-#include "cutils/properties.h"
59-#include "ext4_sb.h" 52-#include "ext4_sb.h"
60-#include <fs_mgr.h> 53-#include <fs_mgr.h>
54+#include <unistd.h>
55+#include <errno.h>
56+#include <stdbool.h>
57+
58+#if defined(__linux__) && !defined(__GLIBC__)
59+#define lseek64 lseek
60+#define off64_t off_t
61+#endif
61 62
62 #define FSTAB_PREFIX "/fstab." 63 #define FSTAB_PREFIX "/fstab."
63 struct fstab *fstab; 64 struct fstab *fstab;
@@ -67,8 +68,6 @@ index ed3da52108..29fa3d65a9 100644
67 static void write_console(int fd, const char* format, ...) 68 static void write_console(int fd, const char* format, ...)
68 { 69 {
69 char buffer[256]; 70 char buffer[256];
70diff --git a/adb/framebuffer_service.c b/adb/framebuffer_service.c
71index 8cbe8403cc..8f0ccfb7aa 100644
72--- a/adb/framebuffer_service.c 71--- a/adb/framebuffer_service.c
73+++ b/adb/framebuffer_service.c 72+++ b/adb/framebuffer_service.c
74@@ -14,6 +14,10 @@ 73@@ -14,6 +14,10 @@
@@ -92,11 +91,9 @@ index 8cbe8403cc..8f0ccfb7aa 100644
92 #include <linux/fb.h> 91 #include <linux/fb.h>
93 #include <sys/ioctl.h> 92 #include <sys/ioctl.h>
94 #include <sys/mman.h> 93 #include <sys/mman.h>
95diff --git a/adb/sysdeps.h b/adb/sysdeps.h
96index cc1f839e9f..ea39ac39cc 100644
97--- a/adb/sysdeps.h 94--- a/adb/sysdeps.h
98+++ b/adb/sysdeps.h 95+++ b/adb/sysdeps.h
99@@ -123,8 +123,8 @@ static __inline__ int unix_close(int fd) 96@@ -123,8 +123,8 @@ static __inline__ int unix_close(int fd
100 { 97 {
101 return close(fd); 98 return close(fd);
102 } 99 }
@@ -118,7 +115,7 @@ index cc1f839e9f..ea39ac39cc 100644
118 115
119 116
120 static __inline__ int adb_read(int fd, void* buf, size_t len) 117 static __inline__ int adb_read(int fd, void* buf, size_t len)
121@@ -392,8 +392,8 @@ static __inline__ int adb_lseek(int fd, int pos, int where) 118@@ -392,8 +392,8 @@ static __inline__ int adb_lseek(int f
122 { 119 {
123 return lseek(fd, pos, where); 120 return lseek(fd, pos, where);
124 } 121 }