components/python/python27/patches/16-ossaudiodev.patch
changeset 1914 00e8dbcb9b1e
parent 1246 164605dfef4e
child 1954 32663e59626d
equal deleted inserted replaced
1913:bf893655bc39 1914:00e8dbcb9b1e
    44      _EXPORT_INT(m, SNDCTL_TMR_STOP);
    44      _EXPORT_INT(m, SNDCTL_TMR_STOP);
    45      _EXPORT_INT(m, SNDCTL_TMR_TEMPO);
    45      _EXPORT_INT(m, SNDCTL_TMR_TEMPO);
    46      _EXPORT_INT(m, SNDCTL_TMR_TIMEBASE);
    46      _EXPORT_INT(m, SNDCTL_TMR_TIMEBASE);
    47 +#endif
    47 +#endif
    48  }
    48  }
    49 --- Python-2.7.3/setup.py-orig	2012-12-20 12:26:17.244961277 -0600
    49 --- Python-2.7.6/setup.py.~5~	2014-05-14 13:37:59.287142508 -0700
    50 +++ Python-2.7.3/setup.py	2012-12-20 12:27:23.938119947 -0600
    50 +++ Python-2.7.6/setup.py	2014-05-14 13:40:01.472280298 -0700
    51 @@ -1509,7 +1509,7 @@ class PyBuildExt(build_ext):
    51 @@ -1632,8 +1632,8 @@
    52          else:
    52          else:
    53              missing.append('linuxaudiodev')
    53              missing.append('linuxaudiodev')
    54  
    54  
    55 -        if (platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
    55 -        if (host_platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
    56 +        if (platform in ('sunos5', 'linux2', 'freebsd4', 'freebsd5', 'freebsd6',
    56 -                        'freebsd7', 'freebsd8')
    57                          'freebsd7', 'freebsd8')
    57 +        if (host_platform in ('sunos5', 'linux2', 'freebsd4', 'freebsd5',
    58              or platform.startswith("gnukfreebsd")):
    58 +                        'freebsd6', 'freebsd7', 'freebsd8')
       
    59              or host_platform.startswith("gnukfreebsd")):
    59              exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
    60              exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
       
    61          else: