442
|
1 |
--- deluge-0.5.4.1.orig/libtorrent/src/storage.cpp 2007年 8月 31日 五 20:44:33
|
|
2 |
+++ deluge-0.5.4.1/libtorrent/src/storage.cpp 2007年 9月 2日 日 17:25:35
|
|
3 |
@@ -75,6 +75,7 @@
|
|
4 |
#include <cstdio>
|
|
5 |
#endif
|
|
6 |
|
|
7 |
+#if 0
|
|
8 |
#if defined(__APPLE__)
|
|
9 |
// for getattrlist()
|
|
10 |
#include <sys/attr.h>
|
|
11 |
@@ -87,6 +88,7 @@
|
|
12 |
#if defined(__linux__)
|
|
13 |
#include <sys/statfs.h>
|
|
14 |
#endif
|
|
15 |
+#endif // 0
|
|
16 |
|
|
17 |
#if defined(_WIN32) && defined(UNICODE)
|
|
18 |
|
|
19 |
@@ -962,6 +964,7 @@
|
|
20 |
bool supports_sparse_files(fs::path const& p)
|
|
21 |
{
|
|
22 |
assert(p.is_complete());
|
|
23 |
+#if 0
|
|
24 |
#if defined(_WIN32)
|
|
25 |
// assume windows API is available
|
|
26 |
DWORD max_component_len = 0;
|
|
27 |
@@ -1061,6 +1064,8 @@
|
|
28 |
|
|
29 |
// TODO: POSIX implementation
|
|
30 |
return false;
|
|
31 |
+#endif // 0
|
|
32 |
+ return true;
|
|
33 |
}
|
|
34 |
|
|
35 |
// -- piece_manager -----------------------------------------------------
|