0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-13 13:13:04 +00:00
Files
termux-packages/packages/openjdk-17/0036-OUTTREE-bionic-type-redef-fix.patch
alexytomi 8d30dd9550 fix(openjdk-17): Readd deleted comments to commit message
Also regenerates for 17.0.16-ga
2025-07-23 00:33:24 -05:00

27 lines
1.0 KiB
Diff

From 9b707614f68b437f1dce8f08b843815c4b098b09 Mon Sep 17 00:00:00 2001
From: Robert Kirkman <31490854+robertkirkman@users.noreply.github.com>
Date: Mon, 5 May 2025 21:07:27 -0500
Subject: [PATCH 36/41] OUTTREE bionic type redef fix
Co-authored-by: eval Nya <11857526-nexplorer-3e@users.noreply.gitlab.com>
---
src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c b/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
index 51b18326c18..83ed08e85aa 100644
--- a/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
+++ b/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
@@ -79,7 +79,7 @@
// by defining binary compatible statx structs in this file and
// not relying on included headers.
-#ifndef __GLIBC__
+#if !defined(__BIONIC__) && !defined(__GLIBC__)
// Alpine doesn't know these types, define them
typedef unsigned int __uint32_t;
typedef unsigned short __uint16_t;
--
2.50.1