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

22 lines
703 B
Diff

diff -Naurw openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c
--- a/src/java.desktop/unix/native/libawt_xawt/xawt/XToolkit.c 2015-03-23 10:05:01.000000000 +0700
+++ b/src/java.desktop/unix/native/libawt_xawt/xawt/XToolkit.c 2015-08-26 15:55:39.775658680 +0700
@@ -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
@@ -799,7 +799,7 @@
return ret;
}
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__) && !defined(__UCLIBC__)
void print_stack(void)
{
void *array[10];