You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-p2p/amule/files/amule-2.2.6-fallocate.diff

24 lines
687 B

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),