$NetBSD: patch-bd,v 1.1 2009/10/18 10:21:01 tnn Exp $

--- jdk/src/solaris/hpi/include/interrupt.h.orig	2009-10-17 16:49:37.000000000 +0200
+++ jdk/src/solaris/hpi/include/interrupt.h
@@ -75,7 +75,7 @@ void intrDispatch(int interrupt, void *s
  *      N_INTERRUPTS  - The number of interrupt channels.  These
  *                      are numbered from 0 to (N_INTERRUPTS - 1).
  */
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
 #define       N_INTERRUPTS    NSIG    /* 0 to NSIG - 1*/
 #else
 #define N_INTERRUPTS    32      /* 0 to 31 */
