mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 00:12:56 +02:00
calibre: fix musl build
This commit is contained in:
parent
9321caca0d
commit
537096ccb1
1 changed files with 12 additions and 0 deletions
12
srcpkgs/calibre/patches/musl-pread.patch
Normal file
12
srcpkgs/calibre/patches/musl-pread.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Source: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/testing/calibre/musl-pread.patch
|
||||||
|
--- a/src/calibre/utils/speedup.c
|
||||||
|
+++ b/src/calibre/utils/speedup.c
|
||||||
|
@@ -748,7 +748,7 @@
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
-#ifdef __linux__
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
ssize_t nr = pread64(fd, buf + pos, n - pos, offset);
|
||||||
|
#else
|
||||||
|
ssize_t nr = pread(fd, buf + pos, n - pos, offset);
|
Loading…
Add table
Reference in a new issue