Ticket #47125: pykde4-macports-adaptations-noDLFCN.diff

File pykde4-macports-adaptations-noDLFCN.diff, 559 bytes (added by RJVB (René Bertin), 10 years ago)
  • __init__.py

    old new  
    1 import sys,DLFCN
    2 # This is needed to ensure that dynamic_cast and RTTI works inside kdelibs.
    3 sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL)
    4      
    5  No newline at end of file
     1import sys
     2try:
     3        import DLFCN
     4        # This is needed to ensure that dynamic_cast and RTTI works inside kdelibs.
     5        sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL)
     6except:
     7        from _ctypes import RTLD_GLOBAL
     8        sys.setdlopenflags(RTLD_GLOBAL)
     9