CDVD: Fix FreeBSD compile.

This commit is contained in:
lightningterror 2023-02-12 11:58:54 +01:00
parent af0b17bb7a
commit e12717c108
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,7 @@ bool IOCtlSrc::Reopen()
void IOCtlSrc::SetSpindleSpeed(bool restore_defaults) const
{
#ifdef __APPLE__
u16 speed = restore_defaults ? 0xFFFF : m_media_type >= 0 ? 5540 :
3600;
int ioctl_code = m_media_type >= 0 ? DKIOCDVDSETSPEED : DKIOCCDSETSPEED;
@ -77,6 +78,10 @@ void IOCtlSrc::SetSpindleSpeed(bool restore_defaults) const
{
DevCon.WriteLn("CDVD: Spindle speed set to %d", speed);
}
#else
// FIXME: FreeBSD equivalent for DKIOCDVDSETSPEED DKIOCCDSETSPEED.
DevCon.Warning("CDVD: Setting spindle speed not supported!");
#endif
}
u32 IOCtlSrc::GetSectorCount() const