]>
Commit | Line | Data |
---|---|---|
7b4b0ae2 MM |
1 | diff -ur parted-1.4.19/libparted/device.c parted-1.4.19--/libparted/device.c |
2 | --- parted-1.4.19/libparted/device.c Sun Aug 12 07:51:44 2001 | |
3 | +++ parted-1.4.19--/libparted/device.c Tue Oct 2 14:00:45 2001 | |
4 | @@ -1035,7 +1035,7 @@ | |
5 | PED_ASSERT (dev != NULL, return 0); | |
6 | PED_ASSERT (!dev->external_mode, return 0); | |
7 | ||
8 | -#if SIZEOF_OFF_T < 8 && defined(linux) | |
9 | - if (sizeof (off_t) < 8) { | |
10 | +#if defined(USE_OWN_LLSEEK) && defined(linux) | |
11 | + if (1) { | |
12 | loff_t pos = sector * 512; | |
13 | return ped_llseek (dev->fd, pos, SEEK_SET) == pos; | |
14 | diff -ur parted-1.4.19/libparted/llseek.c parted-1.4.19--/libparted/llseek.c | |
15 | --- parted-1.4.19/libparted/llseek.c Sun Apr 8 00:04:37 2001 | |
16 | +++ parted-1.4.19--/libparted/llseek.c Tue Oct 2 14:07:43 2001 | |
17 | @@ -43,7 +43,7 @@ | |
18 | ||
19 | #include "config.h" | |
20 | ||
21 | -#if SIZEOF_OFF_T < 8 && defined(linux) | |
22 | +#if defined(USE_OWN_LLSEEK) && defined(linux) | |
23 | ||
24 | #include <unistd.h> | |
25 | #include <linux/unistd.h> | |
26 | @@ -76,5 +71,5 @@ | |
27 | return (retval==-1 ? (loff_t) retval : result); | |
28 | } | |
29 | ||
30 | -#endif /* SIZEOF_OFF_T < 8 && defined(linux) */ | |
31 | +#endif /* defined(USE_OWN_LLSEEK) && defined(linux) */ | |
32 | ||
33 | diff -ur parted-1.4.19/libparted/llseek.h parted-1.4.19--/libparted/llseek.h | |
34 | --- parted-1.4.19/libparted/llseek.h Sun Apr 8 00:04:37 2001 | |
35 | +++ parted-1.4.19--/libparted/llseek.h Tue Oct 2 14:18:17 2001 | |
36 | @@ -22,7 +22,7 @@ | |
37 | ||
38 | #include "config.h" | |
39 | ||
40 | -#if SIZEOF_OFF_T < 8 && defined(linux) | |
41 | +#if defined(USE_OWN_LLSEEK) && defined(linux) | |
42 | ||
43 | #include <sys/types.h> | |
44 |