summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-02-12 13:57:35 +0000
committerBenoit Foucher <benoit@zeroc.com>2007-02-12 13:57:35 +0000
commit05c3fa381b1e57657a0223038cb3a4188c817602 (patch)
tree5b24e2b836055ea92b51208adb4a3008bc9f9aef /py/python/Ice.py
parentMake depend. (diff)
downloadice-05c3fa381b1e57657a0223038cb3a4188c817602.tar.bz2
ice-05c3fa381b1e57657a0223038cb3a4188c817602.tar.xz
ice-05c3fa381b1e57657a0223038cb3a4188c817602.zip
Fixed bug 1790
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r--py/python/Ice.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py
index 5da42382462..c7214616be3 100644
--- a/py/python/Ice.py
+++ b/py/python/Ice.py
@@ -22,6 +22,10 @@ try:
#
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
except ImportError:
+ # If the dl module is not available and we're running on a linux
+ # platform, use the hard coded value of RTLD_NOW|RTLD_GLOBAL.
+ if sys.platform.startswith("linux"):
+ sys.setdlopenflags(258)
pass
#