Skip to content

Commit f4ce2df

Browse files
Revert "8348348: Remove unnecessary #ifdef STATIC_BUILD around DEF_STATIC_JNI_OnLoad from zip_util.c"
This reverts commit 8103256.
1 parent a224f12 commit f4ce2df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/java.base/share/native/libzip/zip_util.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ static void freeCEN(jzfile *);
7272
static jint INITIAL_META_COUNT = 2; /* initial number of entries in meta name array */
7373

7474
/*
75-
* Declare library specific JNI_Onload entry
75+
* Declare library specific JNI_Onload entry if static build
7676
*/
77+
#ifdef STATIC_BUILD
7778
DEF_STATIC_JNI_OnLoad
79+
#endif
7880

7981
/*
8082
* The ZFILE_* functions exist to provide some platform-independence with

0 commit comments

Comments
 (0)