7152519: Dependency on non-POSIX header file <link.h> causes portability problem
authorluchsh
Thu, 22 Mar 2012 12:47:39 +0800
changeset 12389 51f9d419c9e4
parent 12388 5a31b31ab09b
child 12390 b77511960916
7152519: Dependency on non-POSIX header file <link.h> causes portability problem Reviewed-by: prr, igor
jdk/src/solaris/native/sun/awt/fontpath.c
jdk/src/solaris/native/sun/java2d/opengl/OGLFuncs_md.h
jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c
--- a/jdk/src/solaris/native/sun/awt/fontpath.c	Wed Mar 21 18:41:42 2012 -0700
+++ b/jdk/src/solaris/native/sun/awt/fontpath.c	Thu Mar 22 12:47:39 2012 +0800
@@ -583,9 +583,6 @@
 }
 
 #include <dlfcn.h>
-#if !(defined(__linux__) || defined(MACOSX))
-#include <link.h>
-#endif
 
 #include "fontconfig.h"
 
--- a/jdk/src/solaris/native/sun/java2d/opengl/OGLFuncs_md.h	Wed Mar 21 18:41:42 2012 -0700
+++ b/jdk/src/solaris/native/sun/java2d/opengl/OGLFuncs_md.h	Thu Mar 22 12:47:39 2012 +0800
@@ -27,9 +27,6 @@
 #define OGLFuncs_md_h_Included
 
 #include <stdlib.h>
-#ifndef MACOSX
-#include <link.h>
-#endif
 #include "jvm_md.h"
 #include "J2D_GL/glx.h"
 #include "OGLFuncMacros.h"
--- a/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c	Wed Mar 21 18:41:42 2012 -0700
+++ b/jdk/src/solaris/native/sun/java2d/x11/XRBackendNative.c	Thu Mar 22 12:47:39 2012 +0800
@@ -70,7 +70,6 @@
 
 #ifdef __solaris__
 /* Solaris 10 will not have these symbols at runtime */
-#include <link.h>
 
 typedef Picture (*XRenderCreateLinearGradientFuncType)
                                      (Display *dpy,