components/desktop/pulseaudio/patches/02-glibc.patch
changeset 6201 678d1d5c0b81
equal deleted inserted replaced
6200:888b9f996824 6201:678d1d5c0b81
       
     1 Waiting for upstream resolution:
       
     2 
       
     3   90880 builds can fail due to non-portable glibc-specific internal macro usage
       
     4   https://bugs.freedesktop.org/show_bug.cgi?id=90880
       
     5 
       
     6 --- pulseaudio-6.0/src/pulsecore/sample-util.h	2015-02-12 06:10:35.000000000 -0800
       
     7 +++ pulseaudio-6.0/src/pulsecore/sample-util.h	2015-06-05 14:13:16.767036433 -0700
       
     8 @@ -32,6 +32,15 @@
       
     9  #include <pulsecore/memblock.h>
       
    10  #include <pulsecore/memchunk.h>
       
    11  
       
    12 +/* __WORDSIZE is a non-portable glibc-specific internal macro. */
       
    13 +#if !defined(__WORDSIZE)
       
    14 +# if defined(__LP64__)
       
    15 +#  define __WORDSIZE	64
       
    16 +# else
       
    17 +#  define __WORDSIZE	32
       
    18 +# endif
       
    19 +#endif
       
    20 +
       
    21  typedef struct pa_silence_cache {
       
    22      pa_memblock* blocks[PA_SAMPLE_MAX];
       
    23  } pa_silence_cache;