chiark / gitweb /
Add detect-hardlinks.sh script
[termux-packages] / packages / unrar / sys_statvfs.patch
1 diff -u -r ../unrar/filefn.cpp ./filefn.cpp
2 --- ../unrar/filefn.cpp 2013-12-01 09:10:14.000000000 +0100
3 +++ ./filefn.cpp        2014-02-13 00:16:54.000000000 +0100
4 @@ -156,8 +156,8 @@
5    GetFilePath(Name,Root,ASIZE(Root));
6    char RootA[NM];
7    WideToChar(Root,RootA,ASIZE(RootA));
8 -  struct statvfs sfs;
9 -  if (statvfs(*RootA!=0 ? RootA:".",&sfs)!=0)
10 +  struct statfs sfs;
11 +  if (statfs(*RootA!=0 ? RootA:".",&sfs)!=0)
12      return 0;
13    int64 FreeSize=sfs.f_bsize;
14    FreeSize=FreeSize*sfs.f_bavail;
15 diff -u -r ../unrar/os.hpp ./os.hpp
16 --- ../unrar/os.hpp     2013-12-01 09:10:14.000000000 +0100
17 +++ ./os.hpp    2014-02-13 00:15:24.000000000 +0100
18 @@ -130,7 +130,7 @@
19    #include <sys/sysctl.h>
20  #endif
21  #ifndef SFX_MODULE
22 -  #include <sys/statvfs.h>
23 +  #include <sys/statfs.h>
24  #endif
25  #if defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined(__APPLE__)
26  #endif