Compilation fails on ubuntu (patch attached)



Hi

I tried installing latest beagle 0.3.1 on Ubuntu Gutsy and there was
one trivial problems, manifested in two different places, that made
the compilation fail. Attached is a fix to make it work again.

Installed versions:

mono version 1.2.4
gtk-sharp 2.10.2

-- 
Anders Rune Jensen
http://people.iola.dk/anders/
--- beagled/BeagleDaemon.cs~	2007-11-27 02:50:05.000000000 +0100
+++ beagled/BeagleDaemon.cs	2007-12-12 13:23:15.000000000 +0100
@@ -116,7 +116,7 @@
 
 				if (send_sigprof) {
 					Log.Debug ("Suspicious memory size change detected.  Sending SIGPROF to ourself ({0})", sigprof_count++);
-					Mono.Unix.Native.Syscall.kill (Process.GetCurrentProcess ().Id, Mono.Unix.Native.Signum.SIGPROF);
+					Mono.Unix.Native.Syscall.kill (System.Diagnostics.Process.GetCurrentProcess ().Id, Mono.Unix.Native.Signum.SIGPROF);
 				}
 			}
 		}
--- beagled/IndexHelper/IndexHelper.cs~	2007-11-27 02:50:04.000000000 +0100
+++ beagled/IndexHelper/IndexHelper.cs	2007-12-12 13:24:18.000000000 +0100
@@ -219,7 +219,7 @@
 
 					if (heap_shot && increase > 1.20) {
 						Log.Debug ("Large memory increase detected.  Sending SIGPROF to ourself.");
-						Mono.Unix.Native.Syscall.kill (Process.GetCurrentProcess ().Id, Mono.Unix.Native.Signum.SIGPROF);
+						Mono.Unix.Native.Syscall.kill (System.Diagnostics.Process.GetCurrentProcess ().Id, Mono.Unix.Native.Signum.SIGPROF);
 					}
 				}
 


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