head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.09.26.12.54.52; author tnn; state Exp; branches; next ; commitid zFAqQfiSwFAWc8XG; desc @@ 1.1 log @lang/openjdk25: import openjdk25-1.25.0.4.7 Open-source implementation of the Java Platform, Standard Edition. This package provides OpenJDK 25 LTS. @ text @$NetBSD: patch-src_jdk.attach_bsd_native_libattach_VirtualMachineImpl.c,v 1.1 2025/11/15 12:17:12 ryoon Exp $ Fix casting issue? --- src/jdk.attach/bsd/native/libattach/VirtualMachineImpl.c.orig 2025-11-01 06:31:36.000000000 +0000 +++ src/jdk.attach/bsd/native/libattach/VirtualMachineImpl.c @@@@ -31,7 +31,9 @@@@ #include #include #include +#if !defined(__NetBSD__) #include +#endif #include #include #include @@@@ -163,8 +165,8 @@@@ JNIEXPORT jboolean JNICALL Java_sun_tool */ if (sysctl(mib, sizeof(mib) / sizeof(int), &kiproc, &kipsz, NULL, 0) == 0) { - const bool ignored = sigismember(&kiproc.KI_SIGIGNORE, SIGQUIT) != 0; - const bool caught = sigismember(&kiproc.KI_SIGCATCH, SIGQUIT) != 0; + const bool ignored = sigismember((sigset_t *)(&kiproc.KI_SIGIGNORE), SIGQUIT) != 0; + const bool caught = sigismember((sigset_t *)(&kiproc.KI_SIGCATCH), SIGQUIT) != 0; // note: obviously the masks could change between testing and signalling however this is not the // observed behavior of the current JVM implementation. @