Make cdrom.c compile on FreeBSD (FreeBSD does not seem to have *SEEK,
strange).
This commit is contained in:
parent
892627b12b
commit
f3f08f168f
@ -427,8 +427,8 @@ int CDAUDIO_Seek(WINE_CDAUDIO* wcda, DWORD at)
|
|||||||
{
|
{
|
||||||
#if defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__)
|
#if defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct cdrom_msf0 msf;
|
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
|
struct cdrom_msf0 msf;
|
||||||
msf.minute = at / CDFRAMES_PERMIN;
|
msf.minute = at / CDFRAMES_PERMIN;
|
||||||
msf.second = (at % CDFRAMES_PERMIN) / CDFRAMES_PERSEC;
|
msf.second = (at % CDFRAMES_PERMIN) / CDFRAMES_PERSEC;
|
||||||
msf.frame = at % CDFRAMES_PERSEC;
|
msf.frame = at % CDFRAMES_PERSEC;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user