package/x11r7/xdriver_xf86-video-openchrome: bump version to 0.5.0
[buildroot-gz.git] / package / curlftpfs / 0004-fix-musl-build-off-t.patch
blob9335230520678fc4ce74338e87f8304481cca144
1 Use off_t instead of __off_t
3 __off_t is an internal C library type, which shouldn't be used by
4 applications. It is not defined by the musl C library, so use the
5 public off_t type instead.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Index: b/ftpfs.c
10 ===================================================================
11 --- a/ftpfs.c
12 +++ b/ftpfs.c
13 @@ -687,7 +687,7 @@
14 return ftpfs_getattr(path, &sbuf);
17 -static __off_t test_size(const char* path)
18 +static off_t test_size(const char* path)
20 struct stat sbuf;
21 int err = ftpfs_getattr(path, &sbuf);
22 @@ -950,7 +950,7 @@
24 /* fix openoffice problem, truncating exactly to file length */
26 - __off_t size = (long long int)test_size(path);
27 + off_t size = (long long int)test_size(path);
28 DEBUG(1, "ftpfs_truncate: %s check filesize=%lld\n", path, (long long int)size);
30 if (offset == size)
31 @@ -978,7 +978,7 @@
33 /* fix openoffice problem, truncating exactly to file length */
35 - __off_t size = test_size(path);
36 + off_t size = test_size(path);
37 DEBUG(1, "ftpfs_ftruncate: %s check filesize=%lld\n", path, (long long int)size);
39 if (offset == size)