curlftpfs: fix musl, trigger rebuild

This commit is contained in:
Enno Boland 2019-03-21 19:25:48 +01:00
parent e09e25068c
commit f5d402fca1
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 30 additions and 1 deletions

View 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)

View File

@ -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"