Ticket #5728: twisted-5728-fix-build-on-sunos.patch

File twisted-5728-fix-build-on-sunos.patch, 626 bytes (added by xaka, 17 months ago)
  • twisted/python/dist.py

     
    367367            self.define_macros = [("WIN32", 1)] 
    368368        else: 
    369369            self.define_macros = [] 
     370 
     371        if sys.platform.startswith('sunos'): 
     372            self.define_macros.append(('_XPG4_2', 1)) 
     373 
    370374        self.extensions = [x for x in self.conditionalExtensions 
    371375                           if x.condition(self)] 
     376 
    372377        for ext in self.extensions: 
    373378            ext.define_macros.extend(self.define_macros) 
    374379