aports/community/openjdk8-loongarch/icedtea-jdk-execinfo.patch
Celeste 82181afd55 community/openjdk8-loongarch: new aport
https://github.com/loongson/jdk8u
Loongarch port of OpenJDK 8

Only enabled for arch=loongarch64
2024-09-12 14:09:19 +00:00

20 lines
503 B
Diff

--- openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c
+++ openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c
@@ -27,7 +27,7 @@
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__)
#include <execinfo.h>
#endif
@@ -689,7 +689,7 @@
return ret;
}
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__)
void print_stack(void)
{
void *array[10];