Skip to content

Commit fe3597d

Browse files
committed
Compatibility fix for older gcc/libc versions
Commit e777932 provided native code and library compiled on RHEL 9.4 with gcc 11.5.0 and linking to glibc 2.33. However, on older Linuxes like RHEL 7.9 with older gcc 4.8.5 the compilation fails because of unnamed `jclass` parameters in new functions. Beside this, the new library can't be loaded because of only glibc 2.17 available. Fixed code to be backwards compatible to old gcc and re-built the library on RHEL 7.9 to be compatible with older libc versions.
1 parent 32aa15c commit fe3597d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/bundles/org.eclipse.core.filesystem/natives/unix/fastlinux/fastlinuxfile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ JNIEXPORT jint JNICALL Java_org_eclipse_core_internal_filesystem_local_linux_Lin
269269
}
270270

271271
JNIEXPORT jobjectArray JNICALL Java_org_eclipse_core_internal_filesystem_local_linux_LinuxFileNatives_listDir
272-
(JNIEnv *env, jclass, jbyteArray path)
272+
(JNIEnv *env, jclass clazz, jbyteArray path)
273273
{
274274
char *name;
275275
DIR *dir = NULL;
@@ -385,7 +385,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_eclipse_core_internal_filesystem_local_l
385385
}
386386

387387
JNIEXPORT jobjectArray JNICALL Java_org_eclipse_core_internal_filesystem_local_linux_LinuxFileNatives_listDirAndGetFileInfos
388-
(JNIEnv *env, jclass, jbyteArray path)
388+
(JNIEnv *env, jclass clazz, jbyteArray path)
389389
{
390390
char *name;
391391
DIR *dir = NULL;

0 commit comments

Comments
 (0)