Skip to content

Commit

Permalink
Fix Android patches
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 authored Mar 21, 2024
1 parent 3c2f8fe commit 30ea659
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions patches/jdk17u_android.diff
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ index 3c9d1055f..e4260da69 100644

################################################################################

-ifeq ($(call isTargetOs, linux macosx), true)
+ifeq ($(call isTargetOs, linux macosx android), true)
-ifeq ($(call isTargetOs, linux macosx windows), true)
+ifeq ($(call isTargetOs, linux macosx windows android), true)

$(eval $(call SetupJdkLibrary, BUILD_LIBEXTNET, \
NAME := extnet, \
Expand Down Expand Up @@ -2310,15 +2310,17 @@ index 9df8be1e6..12f9b4de3 100644
typedef int futimens_func(int, const struct timespec *);
typedef int lutimes_func(const char *, const struct timeval *);
typedef DIR* fdopendir_func(int);
@@ -149,10 +150,46 @@ static fstatat64_func* my_fstatat64_func = NULL;
@@ -149,13 +150,48 @@ static fstatat64_func* my_fstatat64_func = NULL;
static unlinkat_func* my_unlinkat_func = NULL;
static renameat_func* my_renameat_func = NULL;
static futimesat_func* my_futimesat_func = NULL;
+static utimensat_func* my_utimensat_func = NULL;
static futimens_func* my_futimens_func = NULL;
static lutimes_func* my_lutimes_func = NULL;
static fdopendir_func* my_fdopendir_func = NULL;

#if defined(__linux__)
static statx_func* my_statx_func = NULL;
#endif
+#ifdef __ANDROID__
+/*
+ * TODO: Android lacks support for the methods listed below. In it's place are
Expand Down Expand Up @@ -2353,7 +2355,7 @@ index 9df8be1e6..12f9b4de3 100644
+
+}
+#endif
+

/**
* fstatat missing from glibc on Linux.
*/
Expand Down

0 comments on commit 30ea659

Please sign in to comment.