summaryrefslogtreecommitdiffstats
path: root/balkan/dos.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-12 22:16:23 +0000
committerErik Troan <ewt@redhat.com>2000-05-12 22:16:23 +0000
commit1798911b3b96f739bbacd30c8ea232c794f5a600 (patch)
tree8292329f824147b66863900425700a601904dd56 /balkan/dos.c
parent23e32da119329ee6fc529364169a55d8188bdb04 (diff)
downloadanaconda-1798911b3b96f739bbacd30c8ea232c794f5a600.tar.gz
anaconda-1798911b3b96f739bbacd30c8ea232c794f5a600.tar.xz
anaconda-1798911b3b96f739bbacd30c8ea232c794f5a600.zip
lseek64() breaks things and I don't care why
Diffstat (limited to 'balkan/dos.c')
-rw-r--r--balkan/dos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/balkan/dos.c b/balkan/dos.c
index e3297d25b..666d1c0e2 100644
--- a/balkan/dos.c
+++ b/balkan/dos.c
@@ -33,12 +33,14 @@ struct singlePartitionTable {
#define WINP_TYPE_EXTENDED 0xf
#define LINUX_TYPE_EXTENDED 0x85
+long long llseek(int fd, long long offset, int whence);
+
static int readSingleTable(int fd, struct singlePartitionTable * table,
long long partSector) {
unsigned char sector[SECTOR_SIZE];
unsigned short magic;
- if (lseek64(fd, ((long long) SECTOR_SIZE * (long long) partSector),
+ if (llseek(fd, ((long long) SECTOR_SIZE * (long long) partSector),
SEEK_SET) < 0)
return BALKAN_ERROR_ERRNO;