ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

alsa-lib_mips_atomic.patch (857B)


      1 --- alsa-lib-1.0.25/include/iatomic.h	2012-01-25 07:56:56.000000000 +0000
      2 +++ alsa-lib-1.0.25-patched/include/iatomic.h	2012-11-02 05:47:09.105284415 +0000
      3 @@ -683,7 +683,6 @@
      4  #endif /* __powerpc__ */
      5  
      6  #ifdef __mips__
      7 -
      8  typedef struct { volatile int counter; } atomic_t;
      9  
     10  #define ATOMIC_INIT(i)    { (i) }
     11 @@ -720,7 +719,7 @@
     12   * Atomically adds @i to @v.  Note that the guaranteed useful range
     13   * of an atomic_t is only 24 bits.
     14   */
     15 -extern __inline__ void atomic_add(int i, atomic_t * v)
     16 +static __inline__ void atomic_add(int i, atomic_t * v)
     17  {
     18  	unsigned long temp;
     19  
     20 @@ -744,7 +743,7 @@
     21   * Atomically subtracts @i from @v.  Note that the guaranteed
     22   * useful range of an atomic_t is only 24 bits.
     23   */
     24 -extern __inline__ void atomic_sub(int i, atomic_t * v)
     25 +static __inline__ void atomic_sub(int i, atomic_t * v)
     26  {
     27  	unsigned long temp;
     28