aboutsummaryrefslogtreecommitdiff
path: root/net-im/turpial/files/patch-turpial__ui__util.py
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/turpial/files/patch-turpial__ui__util.py')
-rw-r--r--net-im/turpial/files/patch-turpial__ui__util.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-im/turpial/files/patch-turpial__ui__util.py b/net-im/turpial/files/patch-turpial__ui__util.py
new file mode 100644
index 000000000000..5b3d22ae7f59
--- /dev/null
+++ b/net-im/turpial/files/patch-turpial__ui__util.py
@@ -0,0 +1,18 @@
+--- ./turpial/ui/util.py.orig 2013-12-19 01:59:58.000000000 +0000
++++ ./turpial/ui/util.py 2014-02-22 11:49:20.000000000 +0000
+@@ -8,10 +8,14 @@
+
+ try:
+ # TODO: Implement this function for other platforms
++ import ctypes
+ if detect_os() == OS_LINUX:
+- import ctypes
+ libc = ctypes.CDLL('libc.so.6')
+ libc.prctl(15, 'turpial', 0, 0)
++ elif detect_os() == OS_FREEBSD or detect_os() == OS_DFLY:
++ import ctypes.util
++ libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))
++ libc.setproctitle('turpial')
+ except ImportError, exc:
+ print exc
+