Browse Source

* fix compilation with latest stat record

git-svn-id: trunk@5129 -
micha 19 years ago
parent
commit
aa17ce4b39
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/extra/cdrom/lincd.pp

+ 3 - 3
packages/extra/cdrom/lincd.pp

@@ -1152,15 +1152,15 @@ begin
   Result:=False;
   If fpstat(device,info)<>0 then
     exit;
-  if not (fpS_ISCHR(info.mode) or
-     fpS_ISBLK(info.mode)) then
+  if not (fpS_ISCHR(info.st_mode) or
+     fpS_ISBLK(info.st_mode)) then
     exit;
   S:=fpReadLink(Device);
   If (S<>'') then
     Device:=S;
   If fpStat(Device,info)<>0 then
     exit;
-  DeviceMajor:=info.rdev shr 8;
+  DeviceMajor:=info.st_rdev shr 8;
   If DeviceMajor in [IDE0_MAJOR,IDE1_MAJOR,IDE2_MAJOR,IDE3_MAJOR] then
       Result:=TestCDRomIOCTL(Device)
   else