diff --git a/src/java.rmi/share/native/librmi/GC.c b/src/java.rmi/share/native/librmi/GC.c index 820184bcf46..191cd846ee7 100644 --- a/src/java.rmi/share/native/librmi/GC.c +++ b/src/java.rmi/share/native/librmi/GC.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,8 +25,13 @@ #include #include +#include "jni_util.h" #include "sun_rmi_transport_GC.h" +/* + * Declare library specific JNI_Onload entry if static build + */ +DEF_STATIC_JNI_OnLoad JNIEXPORT jlong JNICALL Java_sun_rmi_transport_GC_maxObjectInspectionAge(JNIEnv *env, jclass cls)