curlftpfs: fix musl, trigger rebuild
This commit is contained in:
parent
e09e25068c
commit
f5d402fca1
2 changed files with 30 additions and 1 deletions
29
srcpkgs/curlftpfs/patches/fix-musl.patch
Normal file
29
srcpkgs/curlftpfs/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- ftpfs.c.orig 2019-03-21 19:21:55.591218591 +0100
|
||||
+++ ftpfs.c 2019-03-21 19:22:10.270696908 +0100
|
||||
@@ -687,7 +687,7 @@ static int test_exists(const char* path)
|
||||
return ftpfs_getattr(path, &sbuf);
|
||||
}
|
||||
|
||||
-static __off_t test_size(const char* path)
|
||||
+static off_t test_size(const char* path)
|
||||
{
|
||||
struct stat sbuf;
|
||||
int err = ftpfs_getattr(path, &sbuf);
|
||||
@@ -952,7 +952,7 @@ static int ftpfs_truncate(const char* pa
|
||||
|
||||
/* fix openoffice problem, truncating exactly to file length */
|
||||
|
||||
- __off_t size = (long long int)test_size(path);
|
||||
+ off_t size = (long long int)test_size(path);
|
||||
DEBUG(1, "ftpfs_truncate: %s check filesize=%lld\n", path, (long long int)size);
|
||||
|
||||
if (offset == size)
|
||||
@@ -980,7 +980,7 @@ static int ftpfs_ftruncate(const char *
|
||||
}
|
||||
/* fix openoffice problem, truncating exactly to file length */
|
||||
|
||||
- __off_t size = test_size(path);
|
||||
+ off_t size = test_size(path);
|
||||
DEBUG(1, "ftpfs_ftruncate: %s check filesize=%lld\n", path, (long long int)size);
|
||||
|
||||
if (offset == size)
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'curlftpfs'
|
||||
pkgname=curlftpfs
|
||||
version=0.9.2
|
||||
revision=5
|
||||
revision=6
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libglib-devel fuse-devel libcurl-devel"
|
||||
|
|
Loading…
Reference in a new issue