From 44c280cecc2b24ba004955678ba582950eb36534 Mon Sep 17 00:00:00 2001 From: shecks Date: Oct 03 2018 15:29:53 +0000 Subject: Added define for __USE_FILE_OFFSET64 and replaced definition and call to llseek() in seekto() function with call to lseek() for redirect call to lseek64() --- diff --git a/performance/lmbench3/src/disk.c b/performance/lmbench3/src/disk.c index c3f1154..8ff7a51 100644 --- a/performance/lmbench3/src/disk.c +++ b/performance/lmbench3/src/disk.c @@ -9,6 +9,9 @@ #include #include +#ifdef __linux__ +#define __USE_FILE_OFFSET64 +#endif #include #include #include "bench.h" @@ -289,9 +292,7 @@ int seekto(int fd, uint64 off) { #ifdef __linux__ - extern loff_t llseek(int, loff_t, int); - - if (llseek(fd, (loff_t)off, SEEK_SET) == (loff_t)-1) { + if (lseek(fd, (__off64_t)off, SEEK_SET) == (__off64_t)-1) { return(-1); } return (0);