fix dlls/ntdll/cdrom.c compile on NetBSD

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

 



The patch below implements the NetBSD case to fix compiling
of dlls/ntdll/cdrom.c

-- 
Yorick Hardy


--- dlls/ntdll/cdrom.c.orig	Sat Mar  8 10:42:46 2003
+++ dlls/ntdll/cdrom.c	Sat Mar  8 10:47:01 2003
@@ -1045,7 +1045,11 @@
     if (i <= toc.FirstTrack || i > toc.LastTrack+1)
       return STATUS_INVALID_PARAMETER;
     i--;
+#ifdef linux
     cp->FormatCode = CDROM_MSF; 
+#elif defined(__FreeBSD__) || defined(__NetBSD__)
+    cp->FormatCode = CD_MSF_FORMAT; 
+#endif
     cp->Control = toc.TrackData[i-toc.FirstTrack].Control; 
     cp->ADR = toc.TrackData[i-toc.FirstTrack].Adr; 
     cp->TrackNumber = toc.TrackData[i-toc.FirstTrack].TrackNumber;


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

  Powered by Linux