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:
Sertonix
2025-10-28 09:28:33 +01:00
committed by Jan Höppner
parent b1e4f6f331
commit 805a4d4408
4 changed files with 6 additions and 8 deletions

View File

@@ -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;
}