]> git.alsa-project.org Git - alsa-utils.git/commit
aplay,axfer: Replace off64_t with off_t
authorKhem Raj <raj.khem@gmail.com>
Thu, 15 Dec 2022 22:04:10 +0000 (14:04 -0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Jan 2023 18:04:07 +0000 (19:04 +0100)
commit4e3843d0ed9ea7845f5570a1aca542995f91c232
tree0c8c38d756d373f3a851ffe0ffe1e05b24dcabb4
parentdeaa1635cc284ab7e7083b9ce7d25a49fd653626
aplay,axfer: Replace off64_t with off_t

Also replace lseek64 with lseek.

_FILE_OFFSET_BITS=64 is passed to needed platforms since configure uses
AC_SYS_LARGEFILE macro. Therefore off_t is already 64-bit and lseek is
same as lseek64.

Additionally this fixes buils with latest musl where these lfs64
functions are moved out from _GNU_SOURCE and under _LARGEFILE64_SOURCE
macro alone. This makes the builds fail on 32-bit platforms even though
default off_t on musl is 64-bit always.

Fixes: https://github.com/alsa-project/alsa-utils/pull/183
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c
axfer/container-voc.c
axfer/container.c
axfer/container.h
axfer/test/container-test.c
axfer/test/mapper-test.c