summaryrefslogtreecommitdiff
path: root/emulators/plex86/patches/patch-ab
blob: 16187405afe27fb5ca4e6b84ffde998abc93a997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
$NetBSD: patch-ab,v 1.3 2001/01/07 14:44:19 tron Exp $

--- user/plugins/bochs/iodev/harddrv.cc.orig	Wed Jan  3 13:50:13 2001
+++ user/plugins/bochs/iodev/harddrv.cc	Sun Jan  7 12:11:02 2001
@@ -313,14 +313,14 @@
               }
             else { /* read next one into controller buffer */
               unsigned long logical_sector;
-              loff_t ret;
+              off_t ret;
 
               BX_SELECTED_CONTROLLER.status.drq = 1;
               BX_SELECTED_CONTROLLER.status.seek_complete = 1;
 
 	      logical_sector = calculate_logical_address();
 
-	      ret = BX_SELECTED_HD.hard_drive->lseek((loff_t)logical_sector * 512, SEEK_SET);
+	      ret = BX_SELECTED_HD.hard_drive->lseek((off_t)logical_sector * 512, SEEK_SET);
 
               if (ret == -1)
                 bx_panic("disk: could lseek() hard drive image file\n");
@@ -668,11 +668,11 @@
           /* if buffer completely writtten */
           if (BX_SELECTED_CONTROLLER.buffer_index >= 512) {
             unsigned long logical_sector;
-            loff_t ret;
+            off_t ret;
 
 	    logical_sector = calculate_logical_address();
 
-	    ret = BX_SELECTED_HD.hard_drive->lseek((loff_t)logical_sector * 512, SEEK_SET);
+	    ret = BX_SELECTED_HD.hard_drive->lseek((off_t)logical_sector * 512, SEEK_SET);
             if (ret == -1)
               bx_panic("disk: could lseek() hard drive image file\n");
 
@@ -1293,7 +1293,7 @@
 
 	  logical_sector = calculate_logical_address();
 
-	  ret = BX_SELECTED_HD.hard_drive->lseek((loff_t)logical_sector * 512, SEEK_SET);
+	  ret = BX_SELECTED_HD.hard_drive->lseek((off_t)logical_sector * 512, SEEK_SET);
 
           if (ret == -1) {
             bx_panic("disk: could not lseek() hard drive image file\n");
@@ -2307,7 +2307,7 @@
       }
 }
 
-loff_t default_image_t::lseek (loff_t offset, int whence)
+off_t default_image_t::lseek (off_t offset, int whence)
 {
       return pluginWCLSeek(fd, offset, whence);
 }