[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#444481: mldonkey-server: mlnet does not start on alpha



Hi,

your bug looks similar to this one:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=280213

Please try this patch to enable usage of statvfs() instead of statfs()

diff -a -x Root -x Repository -x Tag -x Entries -x Entries.Log -x .svn -x '*.rej' -x '*.orig' -x '*.cmi' -x '*.cma' -x '*.cmo' -x '*.cmx' -x '*.cmxa' -x '*.a' -x '*.o' -x .depend -x Makefile -x mlnet -x ocamlpp.byte -N -r -u ./src/utils/lib/stubs_c.c ./src/utils/lib/stubs_c.c
--- ./src/utils/lib/stubs_c.c	2007-01-08 12:02:08.000000000 +0100
+++ ./src/utils/lib/stubs_c.c	2007-10-05 20:06:35.000000000 +0200
@@ -1074,7 +1074,7 @@
 
 #ifdef HAVE_STATS
 static value
-#if ((defined (sun) || defined (__sun__))) || (defined(__NetBSD__) && (__NetBSD_Version__> 299000000)) || defined (__hpux__)
+#if ((defined (sun) || defined (__sun__))) || (defined(__NetBSD__) && (__NetBSD_Version__> 299000000)) || defined (__hpux__) || defined(__alpha__)
 copy_statfs (struct statvfs *buf)
 #else
 copy_statfs (struct statfs *buf)
@@ -1126,7 +1126,7 @@
   CAMLparam1 (pathv);
   CAMLlocal1 (bufv);
   const char *path = String_val (pathv);
-#if ((defined (sun) || defined (__sun__))) || (defined(__NetBSD__) && (__NetBSD_Version__> 299000000)) || defined (__hpux__)
+#if ((defined (sun) || defined (__sun__))) || (defined(__NetBSD__) && (__NetBSD_Version__> 299000000)) || defined (__hpux__) || defined(__alpha__)
   struct statvfs buf;
   if (statvfs (path, &buf) == -1)
 #else

Greetings, spiralvoice

_________________________________________________________________
Freunde treffen. Jetzt den Windows Live™ Messenger downloaden!
Windows Live Writer Beta - Veröffentlichen Sie Multimediainhalte in Ihrem Blog!



Reply to: