mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
fix bug #109395 as pointed out by Ben Phillips and avoid some warnings
* python/libxsl.py: fix bug #109395 as pointed out by Ben Phillips and avoid some warnings when loading the python modules on non Linux platforms. * libxslt/transform.c: fix a bug introduced in the document lookup and exhibited by the keys test. Daniel
This commit is contained in:
@ -17,18 +17,19 @@ else:
|
||||
try:
|
||||
import os
|
||||
osname = os.uname()[0]
|
||||
if osname == 'Linux':
|
||||
if osname == 'Linux' or osname == 'SunOS':
|
||||
RTLD_GLOBAL = 0x00100
|
||||
RTLD_NOW = 0x00002
|
||||
#
|
||||
# is there a better method ?
|
||||
#
|
||||
else:
|
||||
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||
"on this platform: %s" % (osname)
|
||||
# else:
|
||||
# print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||
# "on this platform: %s" % (osname)
|
||||
except:
|
||||
print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||
"on this platform: %s" % (osname)
|
||||
pass
|
||||
# print "libxslt could not guess RTLD_GLOBAL and RTLD_NOW " + \
|
||||
# "on this platform: %s" % (osname)
|
||||
|
||||
if RTLD_GLOBAL != -1 and RTLD_NOW != -1:
|
||||
try:
|
||||
|
Reference in New Issue
Block a user