7153343: Dependency on non-POSIX header file <link.h> causes portability problem
Summary: Remove the unneccessary link.h
Reviewed-by: alanb, chegar
Contributed-by: Jonathan Lu <luchsh@linux.vnet.ibm.com>
--- a/jdk/src/solaris/native/sun/nio/fs/GnomeFileTypeDetector.c Thu Mar 15 14:40:53 2012 -0700
+++ b/jdk/src/solaris/native/sun/nio/fs/GnomeFileTypeDetector.c Fri Mar 16 10:47:25 2012 +0800
@@ -30,9 +30,6 @@
#include <stdlib.h>
#include <dlfcn.h>
-#ifndef __APPLE__
-#include <link.h>
-#endif
#ifdef __solaris__
#include <strings.h>
--- a/jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.c Thu Mar 15 14:40:53 2012 -0700
+++ b/jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.c Fri Mar 16 10:47:25 2012 +0800
@@ -26,9 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
-#ifndef __APPLE__
-#include <link.h>
-#endif
#include "NativeFunc.h"
/* standard GSS method names (ordering is from mapfile) */
--- a/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c Thu Mar 15 14:40:53 2012 -0700
+++ b/jdk/src/solaris/native/sun/security/pkcs11/j2secmod_md.c Fri Mar 16 10:47:25 2012 +0800
@@ -28,9 +28,6 @@
#include <string.h>
#include <dlfcn.h>
-#ifndef __APPLE__
-#include <link.h>
-#endif
#include <jni_util.h>
--- a/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c Thu Mar 15 14:40:53 2012 -0700
+++ b/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c Fri Mar 16 10:47:25 2012 +0800
@@ -64,9 +64,6 @@
#include <assert.h>
#include <dlfcn.h>
-#ifndef __APPLE__
-#include <link.h>
-#endif
#include <jni.h>
--- a/jdk/src/solaris/native/sun/security/smartcardio/pcsc_md.c Thu Mar 15 14:40:53 2012 -0700
+++ b/jdk/src/solaris/native/sun/security/smartcardio/pcsc_md.c Fri Mar 16 10:47:25 2012 +0800
@@ -29,9 +29,6 @@
#include <assert.h>
#include <dlfcn.h>
-#ifndef __APPLE__
-#include <link.h>
-#endif
#include <winscard.h>
--- a/jdk/src/solaris/npt/npt_md.h Thu Mar 15 14:40:53 2012 -0700
+++ b/jdk/src/solaris/npt/npt_md.h Fri Mar 16 10:47:25 2012 +0800
@@ -32,9 +32,6 @@
#include <string.h>
#include <errno.h>
#include <dlfcn.h>
-#ifndef __APPLE__
-#include <link.h>
-#endif
#include <jvm_md.h>
#define NPT_LIBNAME "npt"