changeset 5229:604067ec3ced

7152519: Dependency on non-POSIX header file <link.h> causes portability problem Reviewed-by: prr, igor
author luchsh
date Thu, 22 Mar 2012 12:47:39 +0800
parents da54364b140c
children 6f9e3ac30764
files src/solaris/native/sun/awt/fontpath.c src/solaris/native/sun/java2d/opengl/OGLFuncs_md.h src/solaris/native/sun/java2d/x11/XRBackendNative.c
diffstat 3 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/fontpath.c	Wed Mar 21 18:41:42 2012 -0700
+++ b/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/src/solaris/native/sun/java2d/opengl/OGLFuncs_md.h	Wed Mar 21 18:41:42 2012 -0700
+++ b/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/src/solaris/native/sun/java2d/x11/XRBackendNative.c	Wed Mar 21 18:41:42 2012 -0700
+++ b/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,