]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
funopen: Replace off64_t with off_t in funopen_seek()
authorKhem Raj <raj.khem@gmail.com>
Thu, 15 Dec 2022 17:02:22 +0000 (09:02 -0800)
committerGuillem Jover <guillem@hadrons.org>
Sat, 17 Dec 2022 17:22:26 +0000 (18:22 +0100)
AC_SYS_LARGEFILE in configure.ac is setting needed defines to make
64bit off_t on relevant platforms.

Fixes build on musl:

| src/funopen.c:68:28: error: unknown type name 'off64_t'; did you mean 'off_t'?
| funopen_seek(void *cookie, off64_t *offset, int whence)
|                            ^~~~~~~
|                            off_t

Closes: !24
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/funopen.c

index 01b63b3a9790ca71ff1453cfebfbd37ce56d2c40..0513e38dabb23f3917e022bdafa498f71e245cfb 100644 (file)
@@ -65,7 +65,7 @@ funopen_write(void *cookie, const char *buf, size_t size)
 }
 
 static int
-funopen_seek(void *cookie, off64_t *offset, int whence)
+funopen_seek(void *cookie, off_t *offset, int whence)
 {
        struct funopen_cookie *cookiewrap = cookie;
        off_t soff = *offset;