summaryrefslogtreecommitdiff
blob: 8d1485a677868e5d55b150383fc215ff6a0b6569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Disable fallocate #562992

This is only a workaround to fix FTBFS, the configure check is wrong and needs to be fixed:
http://www.amule.org/abugs/view.php?id=1572

--- a/src/ThreadTasks.cpp
+++ b/src/ThreadTasks.cpp
@@ -506,6 +506,15 @@ void CCompletionTask::OnExit()
 #include <stdlib.h>
 #include <errno.h>
 
+// #562992
+#if defined(__alpha__) || defined(__hppa__)
+#undef HAVE_FALLOCATE
+#endif
+
+#if defined(__hppa__)
+#undef HAVE_SYS_FALLOCATE
+#endif
+
 CAllocateFileTask::CAllocateFileTask(CPartFile *file, bool pause)
 	// GetPrintable is used to improve the readability of the log.
 	: CThreadTask(wxT("Allocating"), file->GetFullName().RemoveExt().GetPrintable(), ETP_High),