$OpenBSD: patch-jdk_src_share_native_com_sun_media_sound_Platform_c,v 1.3 2011/09/22 20:26:48 kurt Exp $
--- jdk/src/share/native/com/sun/media/sound/Platform.c.orig	Tue Sep  6 18:23:39 2011
+++ jdk/src/share/native/com/sun/media/sound/Platform.c	Wed Sep  7 09:44:08 2011
@@ -103,19 +103,11 @@ JNIEXPORT jint JNICALL Java_com_sun_media_sound_Platfo
     switch (feature) {
     case com_sun_media_sound_Platform_FEATURE_MIDIIO:
        return com_sun_media_sound_Platform_LIB_MAIN;
-#ifdef __FreeBSD__
     case com_sun_media_sound_Platform_FEATURE_PORTS:
-       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;
-#else
-    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:
-       // XXXBSD: When native Direct Audio support is ported change
-       // this back to returning com_sun_media_sound_Platform_LIB_MAIN
+       return com_sun_media_sound_Platform_LIB_MAIN;
        return 0;
-#endif
     }
 #endif
     return 0;
