gentoo-bootstrap/dev-java/openjdk/files/musl/7/jdk-execinfo.patch

43 lines
1.5 KiB
Diff

diff -Naur openjdk-7.271_p01/jdk/src/solaris/native/sun/awt/awt_xembed_server.c openjdk-7.271_p01-copy/jdk/src/solaris/native/sun/awt/awt_xembed_server.c
--- openjdk-7.271_p01/jdk/src/solaris/native/sun/awt/awt_xembed_server.c 2020-10-15 21:59:39.543954972 -0400
+++ openjdk-7.271_p01-copy/jdk/src/solaris/native/sun/awt/awt_xembed_server.c 2020-10-15 22:28:01.183946150 -0400
@@ -35,7 +35,7 @@
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <Xm/MwmUtil.h>
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__)
#include <execinfo.h>
#endif
#include <stdio.h>
@@ -835,7 +835,7 @@
AWT_UNLOCK();
}
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__)
void
print_stack (void)
{
diff -Naur openjdk-7.271_p01/jdk/src/solaris/native/sun/xawt/XToolkit.c openjdk-7.271_p01-copy/jdk/src/solaris/native/sun/xawt/XToolkit.c
--- openjdk-7.271_p01/jdk/src/solaris/native/sun/xawt/XToolkit.c 2020-10-15 21:59:39.571954972 -0400
+++ openjdk-7.271_p01-copy/jdk/src/solaris/native/sun/xawt/XToolkit.c 2020-10-15 22:28:45.963945917 -0400
@@ -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
@@ -782,7 +782,7 @@
return ret;
}
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__)
void print_stack(void)
{
void *array[10];