ntdll/cdrom.c NetBSD compile fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	* dlls/ntdll/cdrom.c:
	Bang Jun-Young <junyoung@mogua.com>
	Fix NetBSD compile errors; CDIOCREADAUDIO is not available
	on NetBSD.

-- 
Bang Jun-Young <junyoung@mogua.com>

Index: cdrom.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/cdrom.c,v
retrieving revision 1.2
diff -u -r1.2 cdrom.c
--- cdrom.c	2002/01/14 18:34:34	1.2
+++ cdrom.c	2002/01/17 18:52:28
@@ -765,9 +765,7 @@
             break;
         }
     }
-    *sz = sectSize * raw->SectorCount;
-    ret = CDROM_GetStatusCode(io);
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__)
     {
         struct ioc_read_audio   ira;
 
@@ -791,9 +789,24 @@
             break;
         }
     }
+#elif defined(__NetBSD__)
+    {
+        switch (raw->TrackMode)
+        {
+        case YellowMode2:
+            FIXME("YellowMode2: NIY\n");
+            return ret;
+        case XAForm2:
+            FIXME("XAForm2: NIY\n");
+            return ret;
+        case CDDA:
+	    FIXME("CDDA: NIY\n");
+	    return ret;
+	}
+    }
+#endif
     *sz = sectSize * raw->SectorCount;
     ret = CDROM_GetStatusCode(io);
-#endif
     return ret;
 }
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux