oss.c patch

Bang Jun-Young bjy at mogua.org
Sun May 6 13:09:37 CDT 2001


ChangeLog:
	Bang Jun-Young <bjy at mogua.org>
	* dlls/winmm/wineoss/oss.c:
	Call OSS_MidiInit() only if HAVE_OSS_MIDI is defined.

This should fix a compile error on NetBSD which has OSS support but 
OSS_MIDI.

-- 
Bang Jun-Young <bjy at mogua.org>

-------------- next part --------------
--- dlls/winmm/wineoss/oss.c.orig	Fri Jan 26 07:23:09 2001
+++ dlls/winmm/wineoss/oss.c	Mon May  7 03:03:50 2001
@@ -57,7 +57,11 @@
     
     switch(wMsg) {
 #ifdef HAVE_OSS
-    case DRV_LOAD:		OSS_WaveInit(); OSS_MidiInit(); return 1;
+    case DRV_LOAD:		OSS_WaveInit(); 
+#ifdef HAVE_OSS_MIDI
+    				OSS_MidiInit(); 
+#endif
+				return 1;
     case DRV_FREE:		return 1;
     case DRV_OPEN:		return OSS_drvOpen((LPSTR)dwParam1);
     case DRV_CLOSE:		return OSS_drvClose(dwDevID);


More information about the wine-patches mailing list