aboutsummaryrefslogtreecommitdiffstats
path: root/community/openjdk8/icedtea-jdk-execinfo.patch
blob: e4ae562c573be2f79057c056772e29659ff5177a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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];