$OpenBSD: patch-jdk_src_share_native_com_sun_media_sound_Platform_c,v 1.4 2013/01/14 20:16:56 kurt Exp $
--- jdk/src/share/native/com/sun/media/sound/Platform.c.orig	Tue Aug 28 19:15:07 2012
+++ jdk/src/share/native/com/sun/media/sound/Platform.c	Thu Jan 10 15:03:16 2013
@@ -118,6 +118,11 @@ JNIEXPORT jint JNICALL Java_com_sun_media_sound_Platfo
        return com_sun_media_sound_Platform_LIB_ALSA;
     case com_sun_media_sound_Platform_FEATURE_DIRECT_AUDIO:
        return com_sun_media_sound_Platform_LIB_ALSA;
+#elif defined(__OpenBSD__)
+    case com_sun_media_sound_Platform_FEATURE_PORTS:
+       return com_sun_media_sound_Platform_LIB_MAIN;
+    case com_sun_media_sound_Platform_FEATURE_DIRECT_AUDIO:
+       return com_sun_media_sound_Platform_LIB_MAIN;
 #else
     case com_sun_media_sound_Platform_FEATURE_PORTS:
        return com_sun_media_sound_Platform_LIB_MAIN;
