diff options
author | tmclaugh <tmclaugh@FreeBSD.org> | 2006-10-18 20:25:11 +0000 |
---|---|---|
committer | tmclaugh <tmclaugh@FreeBSD.org> | 2006-10-18 20:25:11 +0000 |
commit | ca8399df90b423f8051af0281e591674536f5006 (patch) | |
tree | 48f73f8010d50544e3e695086285e79c0b0e0fa5 /deskutils/tomboy/files | |
parent | 4508ba7405fffc434d98b919b41bf37d44c5c01c (diff) | |
download | FreeBSD-ports-ca8399df90b423f8051af0281e591674536f5006.zip FreeBSD-ports-ca8399df90b423f8051af0281e591674536f5006.tar.gz |
Fix crash due to DllImport of non-existant function in libc.
Submitted by: flz
Approved by: portmgr (linimon)
Pointyhat: me
Diffstat (limited to 'deskutils/tomboy/files')
-rw-r--r-- | deskutils/tomboy/files/patch-Tomboy_Utils.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/deskutils/tomboy/files/patch-Tomboy_Utils.cs b/deskutils/tomboy/files/patch-Tomboy_Utils.cs new file mode 100644 index 0000000..129152c --- /dev/null +++ b/deskutils/tomboy/files/patch-Tomboy_Utils.cs @@ -0,0 +1,27 @@ +--- Tomboy/Utils.cs.orig Tue Oct 17 18:50:40 2006 ++++ Tomboy/Utils.cs Thu Aug 10 09:12:49 2006 +@@ -767,24 +767,9 @@ + RegisterSignalHandlers (); + } + +- [DllImport("libc")] +- private static extern int prctl (int option, +- byte [] arg2, +- IntPtr arg3, +- IntPtr arg4, +- IntPtr arg5); +- + // From Banshee: Banshee.Base/Utilities.cs + public static void SetProcessName (string name) + { +- if (prctl (15 /* PR_SET_NAME */, +- Encoding.ASCII.GetBytes (name + "\0"), +- IntPtr.Zero, +- IntPtr.Zero, +- IntPtr.Zero) != 0) +- throw new ApplicationException ( +- "Error setting process name: " + +- Mono.Unix.Native.Stdlib.GetLastError ()); + } + + static void RegisterSignalHandlers () |