0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/openjdk-21/0038-OUTTREE-bionic-type-redef-fix.patch
eval Nya 940a37f5f0 addpkg(main/openjdk-21): 21.0.3-ga
cherry-pick all patches, apply them on upstream JDK, and adapted for
newer $UPDATE version

fix: type redefinition introduced in 21.0.2
2024-10-17 14:02:06 +02:00

19 lines
635 B
Diff

--- a/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c 2024-07-08 12:10:48.000000000 +0800
+++ b/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c 2024-07-08 12:19:09.096387500 +0800
@@ -79,12 +79,14 @@
// by defining binary compatible statx structs in this file and
// not relying on included headers.
+#ifndef __BIONIC__
#ifndef __GLIBC__
// Alpine doesn't know these types, define them
typedef unsigned int __uint32_t;
typedef unsigned short __uint16_t;
typedef unsigned long int __uint64_t;
#endif
+#endif
/*
* Timestamp structure for the timestamps in struct statx.