summaryrefslogtreecommitdiffstats
path: root/deskutils/tomboy/files
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-29 02:41:04 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-29 02:41:04 +0800
commit267a26566c5ea5f69eab5e20527f47544e833970 (patch)
tree1ed22009527a831587021e4b5216d0169695e6bf /deskutils/tomboy/files
parent5231f60a4be00c9aee323ca0442856d3017b3969 (diff)
downloadmarcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.tar
marcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.tar.gz
marcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.tar.bz2
marcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.tar.lz
marcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.tar.xz
marcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.tar.zst
marcuscom-ports-267a26566c5ea5f69eab5e20527f47544e833970.zip
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8671 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'deskutils/tomboy/files')
-rw-r--r--deskutils/tomboy/files/patch-Tomboy_Utils.cs28
1 files changed, 28 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 000000000..83f99b06e
--- /dev/null
+++ b/deskutils/tomboy/files/patch-Tomboy_Utils.cs
@@ -0,0 +1,28 @@
+--- Tomboy/Utils.cs.orig Sun Feb 25 02:24:01 2007
++++ Tomboy/Utils.cs Mon Mar 26 20:06:25 2007
+@@ -801,23 +801,12 @@
+ }
+
+ [DllImport("libc")]
+- private static extern int prctl (int option,
+- byte [] arg2,
+- IntPtr arg3,
+- IntPtr arg4,
+- IntPtr arg5);
++ private static extern void setproctitle(byte [] fmt, byte [] str_arg);
+
+ // 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 ());
++ setproctitle(Encoding.ASCII.GetBytes("%s\0"), Encoding.ASCII.GetBytes(name + "\0"));
+ }
+
+ static void RegisterSignalHandlers ()