Fredrik Fornwall
9 years ago
3 changed files with 15 additions and 27 deletions
@ -0,0 +1,14 @@ |
|||
Patch submitted to dev@rarlab.com on 2015-08-25. |
|||
|
|||
diff -u -r ../unrar/os.hpp ./os.hpp
|
|||
--- ../unrar/os.hpp 2015-08-04 06:22:40.000000000 -0400
|
|||
+++ ./os.hpp 2015-08-25 16:58:59.525380417 -0400
|
|||
@@ -160,7 +160,7 @@
|
|||
#define SAVE_LINKS |
|||
#endif |
|||
|
|||
-#if defined(__linux) && !defined (_ANDROID) || defined(__FreeBSD__)
|
|||
+#if defined(__linux) && !defined(__ANDROID__) || defined(__FreeBSD__)
|
|||
#include <sys/time.h> |
|||
#define USE_LUTIMES |
|||
#endif |
@ -1,26 +0,0 @@ |
|||
diff -u -r ../unrar/filefn.cpp ./filefn.cpp
|
|||
--- ../unrar/filefn.cpp 2013-12-01 09:10:14.000000000 +0100
|
|||
+++ ./filefn.cpp 2014-02-13 00:16:54.000000000 +0100
|
|||
@@ -156,8 +156,8 @@
|
|||
GetFilePath(Name,Root,ASIZE(Root)); |
|||
char RootA[NM]; |
|||
WideToChar(Root,RootA,ASIZE(RootA)); |
|||
- struct statvfs sfs;
|
|||
- if (statvfs(*RootA!=0 ? RootA:".",&sfs)!=0)
|
|||
+ struct statfs sfs;
|
|||
+ if (statfs(*RootA!=0 ? RootA:".",&sfs)!=0)
|
|||
return 0; |
|||
int64 FreeSize=sfs.f_bsize; |
|||
FreeSize=FreeSize*sfs.f_bavail; |
|||
diff -u -r ../unrar/os.hpp ./os.hpp
|
|||
--- ../unrar/os.hpp 2013-12-01 09:10:14.000000000 +0100
|
|||
+++ ./os.hpp 2014-02-13 00:15:24.000000000 +0100
|
|||
@@ -130,7 +130,7 @@
|
|||
#include <sys/sysctl.h> |
|||
#endif |
|||
#ifndef SFX_MODULE |
|||
- #include <sys/statvfs.h>
|
|||
+ #include <sys/statfs.h>
|
|||
#endif |
|||
#if defined(__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined(__APPLE__) |
|||
#endif |
Loading…
Reference in new issue