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 #include #include -#ifdef __linux__ +#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__) #include #endif #include @@ -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 #include #include -#ifdef __linux__ +#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__) #include #endif @@ -782,7 +782,7 @@ return ret; } -#ifdef __linux__ +#if defined(__linux__) && defined(__GLIBC__) && ! defined(__UCLIBC__) void print_stack(void) { void *array[10];