Commit 8121e941 authored by Bang Jun-Young's avatar Bang Jun-Young Committed by Alexandre Julliard

Fix NetBSD compile errors; CDIOCREADAUDIO is not available on NetBSD.

parent ea881d25
......@@ -765,9 +765,7 @@ static DWORD CDROM_RawRead(int dev, const RAW_READ_INFO* raw, void* buffer, DWOR
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 @@ static DWORD CDROM_RawRead(int dev, const RAW_READ_INFO* raw, void* buffer, DWOR
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment