"Gerald" == Gerald Pfeifer gerald@pfeifer.com writes:
Gerald> The following patch to dlls/ntdll/cdrom.c revision 1.46 date: Gerald> 2004/06/15 00:45:01; author: julliard; state: Exp; lines: +421 Gerald> -1 Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de Support Gerald> for reading encrypted DVDs.
Gerald> causes a build failure on all FreeBSD (and it seems also NetBSD) Gerald> platforms:
Gerald> cdrom.c: In function `DVD_EndSession': cdrom.c:1739: error: Gerald> `dev' undeclared (first use in this function) cdrom.c:1739: Gerald> error: (Each undeclared identifier is reported only once Gerald> cdrom.c:1739: error: for each function it appears in.) Gerald> cdrom.c:1739: error: `rmv' undeclared (first use in this Gerald> function) gmake[2]: *** [cdrom.o] Error 1 gmake[2]: Leaving Gerald> directory `/.amd_mnt/nashira/files5/test/wine/dlls/ntdll' Gerald> gmake[1]: *** [ntdll] Error 2
Gerald> There is BSD-specific code in this function, but both dev and Gerald> rmv do not appear anywhere, so I guess this was copied from Gerald> somewhere else and then not adjusted?
The Non-Linux side of the patch was never tested. Appended patch return STATUS_NOT_SUPPORTED for that code clause and should make the code compile again.
Gerald, can you perhaps have a look at the implementation of the BSD parts? libdvdcss should have all the needed calls somewhere.
Bye