applied patch from Shaun Walbridge - make dl module work on x86_64

This commit is contained in:
Artem Pavlenko 2006-06-27 19:47:20 +00:00
parent 9980d406fc
commit ad79c5a4fd

View file

@ -21,7 +21,12 @@
# #
from sys import getdlopenflags,setdlopenflags from sys import getdlopenflags,setdlopenflags
from dl import RTLD_NOW,RTLD_GLOBAL try:
from dl import RTLD_NOW, RTLD_GLOBAL
except ImportError:
RTLD_NOW = 2
RTLD_GLOBAL = 256
flags = getdlopenflags() flags = getdlopenflags()
setdlopenflags(RTLD_NOW | RTLD_GLOBAL) setdlopenflags(RTLD_NOW | RTLD_GLOBAL)