From 0f8b67164b60066bf3d7141e5796b7867dfdb16f Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Tue, 12 Dec 2006 23:36:49 +0000 Subject: fixes for compiling on Solaris --- bundles/org.eclipse.equinox.executable/library/eclipseCommon.c | 4 +++- bundles/org.eclipse.equinox.executable/library/eclipseJNI.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'bundles/org.eclipse.equinox.executable/library') diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c index 400e39cf0..f418be57b 100644 --- a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c +++ b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c @@ -20,6 +20,7 @@ #include #include #include +#include #endif #include #include @@ -195,7 +196,8 @@ char * resolveSymlinks( char * path ) { return path; /* resolve symlinks */ char * ch = path; - path = canonicalize_file_name(path); + char * buffer = malloc(PATH_MAX); + path = realpath(path, buffer); free(ch); return path; } diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c b/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c index cd691be18..69572a839 100644 --- a/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c +++ b/bundles/org.eclipse.equinox.executable/library/eclipseJNI.c @@ -189,8 +189,8 @@ int startJavaVM( _TCHAR* libPath, _TCHAR* vmArgs[], _TCHAR* progArgs[] ) if(jniLibrary == NULL) { return -1; /*error*/ } - - createJavaVM = findSymbol(jniLibrary, _T_ECLIPSE("JNI_CreateJavaVM")); + + createJavaVM = (JNI_createJavaVM)findSymbol(jniLibrary, _T_ECLIPSE("JNI_CreateJavaVM")); if(createJavaVM == NULL) { return -1; /*error*/ } -- cgit v1.2.1