summaryrefslogtreecommitdiff
path: root/net-p2p/deluge05/files/patch-libtorrent_src_storage.cpp
blob: bcfe5bf7c3419afd78b86f231b6300e7235bc443 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- libtorrent/src/storage.cpp.orig	2007-08-11 01:51:04.000000000 -0500
+++ libtorrent/src/storage.cpp	2007-08-11 01:52:15.000000000 -0500
@@ -1027,7 +1027,7 @@
 		return false;
 #endif
 
-#if defined(__linux__) || defined(__FreeBSD__)
+#if defined(__linux__)
 		struct statfs buf;
 		int err = statfs(query_path.native_directory_string().c_str(), &buf);
 		if (err == 0)
@@ -1060,7 +1060,11 @@
 #endif
 
 		// TODO: POSIX implementation
+#if defined(__FreeBSD__)
+		return true;
+#else
 		return false;
+#endif
 	}
 
 	// -- piece_manager -----------------------------------------------------