diff --git a/make/lib/CoreLibraries.gmk b/make/lib/CoreLibraries.gmk index bc7f357ae3019b12bd378591fff1939445b6baeb..1eaea90e77757e4c327ec1fe731a19249b31a5dd 100644 --- a/make/lib/CoreLibraries.gmk +++ b/make/lib/CoreLibraries.gmk @@ -264,7 +264,7 @@ $(eval $(call SetupNativeCompilation,BUILD_LIBZIP, \ $(call SET_SHARED_LIBRARY_ORIGIN) \ $(EXPORT_ZIP_FUNCS), \ LDFLAGS_windows := -export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \ - -export:ZIP_ReadEntry -export:ZIP_GetNextEntry jvm.lib \ + -export:ZIP_ReadEntry -export:ZIP_GetNextEntry -export:ZIP_CRC32 jvm.lib \ $(WIN_JAVA_LIB), \ LDFLAGS_SUFFIX_linux := -ljvm -ljava $(LIBZ), \ LDFLAGS_SUFFIX_solaris := -ljvm -ljava $(LIBZ) -lc, \ diff --git a/src/share/native/java/util/zip/CRC32.c b/src/share/native/java/util/zip/CRC32.c index e9185b5fb1bc577b35f547507ebc73a3af9fb055..b03b2b9c53c7380fa34556a174da822cc49e1379 100644 --- a/src/share/native/java/util/zip/CRC32.c +++ b/src/share/native/java/util/zip/CRC32.c @@ -54,7 +54,8 @@ Java_java_util_zip_CRC32_updateBytes(JNIEnv *env, jclass cls, jint crc, return crc; } -JNIEXPORT jint ZIP_CRC32(jint crc, const jbyte *buf, jint len) +JNIEXPORT jint JNICALL +ZIP_CRC32(jint crc, const jbyte *buf, jint len) { return crc32(crc, (Bytef*)buf, len); }