find_library('c') return None under Windows
This commit is contained in:
parent
50aac85e88
commit
384283d2a4
17
src/gajim.py
17
src/gajim.py
|
@ -164,16 +164,17 @@ else:
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
sysname = platform.system()
|
sysname = platform.system()
|
||||||
libc = CDLL(find_library('c'))
|
if sysname in ('Linux', 'FreeBSD', 'OpenBSD', 'NetBSD'):
|
||||||
|
libc = CDLL(find_library('c'))
|
||||||
|
|
||||||
# The constant defined in <linux/prctl.h> which is used to set the name of
|
# The constant defined in <linux/prctl.h> which is used to set the name of
|
||||||
# the process.
|
# the process.
|
||||||
PR_SET_NAME = 15
|
PR_SET_NAME = 15
|
||||||
|
|
||||||
if sysname == 'Linux':
|
if sysname == 'Linux':
|
||||||
libc.prctl(PR_SET_NAME, 'gajim')
|
libc.prctl(PR_SET_NAME, 'gajim')
|
||||||
elif sysname in ('FreeBSD', 'OpenBSD', 'NetBSD'):
|
elif sysname in ('FreeBSD', 'OpenBSD', 'NetBSD'):
|
||||||
libc.setproctitle('gajim')
|
libc.setproctitle('gajim')
|
||||||
|
|
||||||
if gtk.pygtk_version < (2, 12, 0):
|
if gtk.pygtk_version < (2, 12, 0):
|
||||||
pritext = _('Gajim needs PyGTK 2.12 or above')
|
pritext = _('Gajim needs PyGTK 2.12 or above')
|
||||||
|
|
Loading…
Reference in New Issue