mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use _FILE_OFFSET_BITS=64 instead of _LARGEFILE64_SOURCE everywhere
Allows using more portable function/type names while still using 64-bit values on 32-bit glibc systems. Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/193 Signed-off-by: Sertonix <sertonix@posteo.net> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -128,7 +128,7 @@ static int envblk_update(struct zipl_envblk *zeb)
|
||||
if (fs_map(zeb->mfd.fd, zeb->offset, &blknr, zeb->size) != 0)
|
||||
goto error_close;
|
||||
|
||||
if (lseek64(dev_fd, blknr * (uint64_t)zeb->size, SEEK_SET) < 0) {
|
||||
if (lseek(dev_fd, blknr * (off_t)zeb->size, SEEK_SET) < 0) {
|
||||
error_reason(strerror(errno));
|
||||
goto error_close;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user